Skip to content
This repository was archived by the owner on May 9, 2022. It is now read-only.

Remove associated volumes, too#12

Merged
spraints merged 1 commit into
masterfrom
rm-volumes
Feb 26, 2016
Merged

Remove associated volumes, too#12
spraints merged 1 commit into
masterfrom
rm-volumes

Conversation

@spraints
Copy link
Copy Markdown
Contributor

Docker's default is to leave the volumes in place when a container is removed. Hoosegow containers are ephemeral, and any persistent data should be in a mounted volume.

With docker 1.9, mounting a directory ro from a different filesystem copies all of the files into the docker storage dir. The volume isn't removed when the container is removed, so we end up with tons of copies of these files that aren't going to get used anymore.

cc @parkr @mastahyeti

The default is to leave the volumes in place
(https://docs.docker.com/engine/reference/api/docker_remote_api_v1.19/#remove-a-container)
but hoosegow containers are ephemeral, and any persistent data is in a
mounted volume, so that the data can live on after the container is
built.
@btoews
Copy link
Copy Markdown
Contributor

btoews commented Feb 26, 2016

Seems good. 👍

@parkr
Copy link
Copy Markdown
Contributor

parkr commented Feb 26, 2016

Nice catch. 👍

spraints added a commit that referenced this pull request Feb 26, 2016
Remove associated volumes, too
@spraints spraints merged commit 2a55127 into master Feb 26, 2016
@spraints spraints deleted the rm-volumes branch February 26, 2016 20:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants