90ce6de50b
This fix tries to address the issue raised in 27969 where duplicate identical bind mounts for `docker run` caused additional volumes to be created. The reason was that in `runconfig`, if duplicate identical bind mounts have been specified, the `copts.volumes.Delete(bind)` will not truly delete the second entry from the slice. (Only the first entry is deleted). This fix fixes the issue. An integration test has been added to cover the changes This fix fixes 27969. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> |
||
---|---|---|
.. | ||
fixtures | ||
opts | ||
compare.go | ||
compare_test.go | ||
config.go | ||
config_test.go | ||
config_unix.go | ||
config_windows.go | ||
errors.go | ||
hostconfig.go | ||
hostconfig_solaris.go | ||
hostconfig_test.go | ||
hostconfig_unix.go | ||
hostconfig_windows.go | ||
streams.go |