Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to umount a volume when commited #6004

Closed
tehmoon opened this issue May 23, 2014 · 2 comments
Closed

Impossible to umount a volume when commited #6004

tehmoon opened this issue May 23, 2014 · 2 comments

Comments

@tehmoon
Copy link

tehmoon commented May 23, 2014

Hello,

I've attached a volumes to a containers using --volumes to /altroot, copied my files i needed, shutdown the process and commited the container.
When I started a new containers from the new image it seems that my volume /altroot was still mounted on the container:

root@f1e370dea651:/# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda9        17G  3.7G   13G  23% /
tmpfs           500M     0  500M   0% /dev
shm              64M     0   64M   0% /dev/shm
/dev/sda9        17G  3.7G   13G  23% /.dockerinit
/dev/sda9        17G  3.7G   13G  23% /altroot
tmpfs           500M     0  500M   0% /proc/kcore

I tried to run my containers in privileged mode to umount and then commit, but I've not succeeded to remove properly the mounted point.

 $ docker version
Client version: 0.11.1
Client API version: 1.11
Go version (client): go1.2
Git commit (client): fb99f99
Server version: 0.11.1
Server API version: 1.11
Git commit (server): fb99f99
Go version (server): go1.2

Keep up the good job guys :-)

@harto
Copy link

harto commented May 28, 2014

I wonder if this would be fixed by #4885.

@brahmaroutu
Copy link
Contributor

Look like this is fixed in 1.2 Issue should be closed.
$ docker run -v ~/srini:/home/srini -i -P -t busybox sh
/ # df -h
Filesystem Size Used Available Use% Mounted on
none 36.5G 7.1G 27.6G 20% /
tmpfs 497.0M 0 497.0M 0% /dev
shm 64.0M 0 64.0M 0% /dev/shm
/dev/mapper/vg0-root 36.5G 7.1G 27.6G 20% /etc/resolv.conf
/dev/mapper/vg0-root 36.5G 7.1G 27.6G 20% /etc/hostname
/dev/mapper/vg0-root 36.5G 7.1G 27.6G 20% /etc/hosts
/dev/mapper/vg0-root 36.5G 7.1G 27.6G 20% /home/srini
tmpfs 497.0M 0 497.0M 0% /proc/kcore
$ docker commit c97b7bb3cdc9 busybox2
$ docker run -i -P -t busybox2 sh
/ # df -h
Filesystem Size Used Available Use% Mounted on
none 36.5G 7.1G 27.6G 20% /
tmpfs 497.0M 0 497.0M 0% /dev
shm 64.0M 0 64.0M 0% /dev/shm
/dev/mapper/vg0-root 36.5G 7.1G 27.6G 20% /etc/resolv.conf
/dev/mapper/vg0-root 36.5G 7.1G 27.6G 20% /etc/hostname
/dev/mapper/vg0-root 36.5G 7.1G 27.6G 20% /etc/hosts
tmpfs 497.0M 0 497.0M 0% /proc/kcore

Mounted volume that the image is committed with is missing now.

@cpuguy83 cpuguy83 closed this as completed Oct 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants