Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm looking for a way to access the container's rootfs from the host. While I could just use the directory that was passed to lxc.rootfs, it doesn't have the mounts that the container has, so there are just empty directories instead of the mounts. Is there a way to get the same file tree as the container root?

Thanks :)

share|improve this question

1 Answer 1

up vote 0 down vote accepted

The best solution I was able to find is to apply the same mounts both on the host and inside the container (via lxc.mount[.entry]). Mounts from the host do not transfer to the container as the container is fully isolated from the host's mounts.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.