Skip to content

Don't copy host volumes on recreate - #2706

Merged
dnephin merged 1 commit into
docker:masterfrom
dnephin:dont_copy_host_volumes
Jan 28, 2016
Merged

dnephin merged 1 commit into
docker:masterfrom
dnephin:dont_copy_host_volumes

Conversation

@dnephin

@dnephin dnephin commented Jan 19, 2016

Copy link
Copy Markdown

I was doing some more testing of copy during recreate, and I noticed that if I removed a host volume, and there was a volume defined in the image for the same path or if you made it a container volume, you would continue to get the host volume instead.

This change makes it so that if you remove the host volume from the config, you won't keep getting the host volume.

@dnephin

dnephin commented Jan 28, 2016

Copy link
Copy Markdown
Author

ping @shin- @aanand

would be good to get this small fix into 1.6, I forgot to add the milestone earlier

@shin-

shin- commented Jan 28, 2016

Copy link
Copy Markdown

LGTM

dnephin added a commit that referenced this pull request Jan 28, 2016
Don't copy host volumes on recreate
@dnephin
dnephin merged commit 883e456 into docker:master Jan 28, 2016
@dnephin
dnephin deleted the dont_copy_host_volumes branch January 28, 2016 20:02
@aanand

aanand commented Feb 1, 2016

Copy link
Copy Markdown

Cherry-picked into #2765

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants