1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/runconfig/opts
Yong Tang 90ce6de50b Fix issue related to duplicate identical bind mounts for docker run
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>
2016-11-01 20:31:34 -07:00
..
fixtures Return error if env file contains non-ascii or utf8 bytes (for windows) 2016-10-25 12:34:25 -07:00
envfile.go Return error if env file contains non-ascii or utf8 bytes (for windows) 2016-10-25 12:34:25 -07:00
envfile_test.go
opts.go Add init process for zombie fighting 2016-09-19 17:33:50 -07:00
opts_test.go validate build-arg 2016-09-12 18:02:21 +08:00
parse.go Fix issue related to duplicate identical bind mounts for docker run 2016-11-01 20:31:34 -07:00
parse_test.go Return error if env file contains non-ascii or utf8 bytes (for windows) 2016-10-25 12:34:25 -07:00
runtime.go Add engine-api types to docker 2016-09-07 11:05:58 -07:00
throttledevice.go all: replace loop with single append 2016-10-13 13:31:52 -07:00
ulimit.go Convert 'docker run' to a cobra command and to use pflags 2016-06-04 13:55:35 +02:00
ulimit_test.go
weightdevice.go Add engine-api types to docker 2016-09-07 11:05:58 -07:00