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

stop/restart docker daemon with running containers #32

Open
msuringa opened this issue May 13, 2016 · 2 comments
Open

stop/restart docker daemon with running containers #32

msuringa opened this issue May 13, 2016 · 2 comments

Comments

@msuringa
Copy link

When I restart the docker daemon which has containers running that use this volume driver, the running containers get stopped/killed, but the all mounts remain locked. Is this something the volume plugin can resolve, or is this handled in the docker daemon process?

@porcupie
Copy link
Contributor

I'll have to look into this - I would think that docker daemon would send the proper command to the volume plugin when terminating any running containers. If daemon gets killed and can't cleanup, then I might expect to need to do some manual cleanups.

What version of docker ? What OS? Is it a clean shutdown or an unexpected termination?

@msuringa
Copy link
Author

OS is RedHat 7.2
Docker version: 1.9.1
I see this behaviour when I do a clean restart/stop of the docker daemon.

I have resolved this issue locally by adding some logic to check if the image that's being mounted has watchers anywhere, if it doesn't, it will cancel whatever lock is in place and lock it for the local server.

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

2 participants