mirror of
https://github.com/docker/cli.git
synced 2026-01-15 07:40:57 +03:00
The idx.index array is overwritten when a new value is inserted to the index. When two containers are created concurrently, their ids are inserted to the index and one can overwrite the other leaving one of ids missing from the index. Adding a RWMutex lock around read/write operations fixes this. Docker-DCO-1.1-Signed-off-by: James Allen <jamesallen0108@gmail.com> (github: jpallen) Upstream-commit: 37fcbfa1f4586e4437664239fc271dda31ac1837 Component: engine