Semiflexible polymers in lyotropic solution confined inside spherical nanoscopic "containers" with repulsive walls are studied by molecular dynamics simulations and density functional theory, as a first step to model confinement effects on stiff polymers inside of miniemulsions, vesicles, and cells. It is shown that the depletion effects caused by the monomer-wall repulsion depend distinctly on the radius R of the sphere. Further, nontrivial orientational effects occur when R, the persistence length p , and the contour length L of the polymers are of similar magnitude. At intermediate densities, a "shell" of wallattached chains is forming, such that the monomers belonging to those chains are in a layer at about the distance of one monomer from the container wall. At the same time, the density of the centers of mass of these chains is peaked somewhat further inside, but still near the wall. However, the arrangement of chains is such that the total monomer density is almost uniform in the sphere, apart from a small layering peak at the wall. It is shown that excluded volume effects among the monomers are crucial to account for this behavior, although they are negligible for comparable isolated single semiflexible chains of the same length. Published by AIP Publishing. [http://dx