Fix copying of volumes by using the name of the volume instead of the host path.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2016-02-16 14:24:17 -05:00
commit 4a09da43ea
3 changed files with 35 additions and 10 deletions

View file

@ -925,7 +925,7 @@ def get_container_data_volumes(container, volumes_option):
continue
# Copy existing volume from old container
volume = volume._replace(external=mount['Source'])
volume = volume._replace(external=mount['Name'])
volumes.append(volume)
return volumes