Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save EdoardoVignati/b9e1f74b62c6001773aa68b57957f576 to your computer and use it in GitHub Desktop.
Save EdoardoVignati/b9e1f74b62c6001773aa68b57957f576 to your computer and use it in GitHub Desktop.
Access to lxc container file system from host
# List containers
lxc-ls -f -Fname,pid
# Get container pid
lxc-ls -f -Fpid mycontainer
# Access file system
cat /proc/containerpid/root/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment