Skip to content

Instantly share code, notes, and snippets.

@smothiki
Created August 12, 2015 23:26
Show Gist options
  • Save smothiki/3f871adf985289d404b7 to your computer and use it in GitHub Desktop.
Save smothiki/3f871adf985289d404b7 to your computer and use it in GitHub Desktop.
ceph issues : my understanding
docker run --privileged=true --net host -v /var/lib/deis/store:/var/lib/deis/store -it busybox

here host /var/lib/deis/store and container /var/lib/deis/store are same docker makes things easy in reality container /var/lib/deis/store is some random directory() on the host which docker creates and does mount -bind /var/lib/deis/store <randdir>

but from inside container if we run mount -t ceph <ips>/: /var/lib/deis/store we are overriding the bind mount option and /var/lib/deis/store of container is no longer related to /var/lib/deis/store of host.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment