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:
parent
89108f2a0f
commit
4a09da43ea
3 changed files with 35 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue