当我重新启动docker服务时,我将启动以下容器,但是会发生错误。
$docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS
591009977bae yomin/deepdive:1.0 "/bin/bash" 3 weeks ago Exited (-1) 3 hours ago
$docker start -i -a 591009977bae
Error response from daemon: Cannot start container 591009977bae: [0] Id already in use: Container with id exists: 591009977baefe0ad7986b3149e9c8090655c3419b46e72bfa0c554189a54739
$docker info
Containers: 6
Images: 60
Server Version: 1.9.1
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 76
Dirperm1 Supported: false
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.13.0-24-generic
Operating System: Ubuntu 14.04.3 LTS
CPUs: 24
Total Memory: 94.37 GiB
Name: ubuntu
ID: P322:L4XK:BGEL:AAZ4:O6VF:IX2O:AUMK:QCBD:RJIS:RGOU:LCJI:GDGU
WARNING: No swap limit support
最佳答案
实际上,当我重述您的情况时,
我成功地重新启动了容器。Docker version 1.9.x
有一些晦涩的错误。
我认为您可以将docker-engine升级到最新的version(1.10.3)
并重试,这是一个好主意。
https://stackoverflow.com/questions/36216997/