Skip to content

Instantly share code, notes, and snippets.

@aaronfeng
Created October 9, 2013 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronfeng/6907828 to your computer and use it in GitHub Desktop.
Save aaronfeng/6907828 to your computer and use it in GitHub Desktop.
by default /mnt can't be mounted. pass -lxc-conf to allow mounting of /mnt from host to the container
docker run -lxc-conf="lxc.pivotdir = lxc_putold" -v /mnt/data:/mnt/data ubuntu touch /mnt/data/hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment