Confining in space the equilibrium fluctuations of statistical systems with long-range correlations is known to result into effective forces on the boundaries. Here we demonstrate the occurrence of Casimir-like forces in the nonequilibrium context provided by flocking active matter. In particular, we consider a system of aligning self-propelled particles in two spatial dimensions that are transversally confined by reflecting or partially reflecting walls. We show that in the ordered flocking phase this confined active vectorial fluid is characterized by extensive boundary layers, as opposed to the finite ones usually observed in confined scalar active matter. Moreover, a finite-size, fluctuation-induced contribution to the pressure on the wall emerges, which decays slowly and algebraically upon increasing the distance between the walls. We explain our findings-which display a certain degree of universality-within a hydrodynamic description of the density and velocity fields.