sudo docker ps -a -q
sudo docker ps -a|cutawk '{print $1}'
#删除前八条
sudo docker ps -a -q|head -n |xargs sudo docker rm
```
root@docker-azure:/var/lib/docker/containers/ef9301c442526fa2d7de00dfb7209221569fcc6cab2029dbae07e298572aebd0# cat ef9301c442526fa2d7de00dfb7209221569fcc6cab2029dbae07e298572aebd0-json.log
{"log":"error: database is uninitialized and MYSQL_ROOT_PASSWORD not set\r\n","stream":"stdout","time":"2015-09-01T05:39:48.79123Z"}
{"log":" Did you forget to add -e MYSQL_ROOT_PASSWORD=... ?\r\n","stream":"stdout","time":"2015-09-01T05:39:48.7918263Z"}
root@docker-azure:/var/lib/docker/containers/ef9301c442526fa2d7de00dfb7209221569fcc6cab2029dbae07e298572aebd0#
```
```
root@docker-azure:~# docker start ff3e88f5ea8c
Error response from daemon: Cannot start container ff3e88f5ea8c: invalid ulimit name
Error: failed to start containers: [ff3e88f5ea8c]
root@docker-azure:~#
去掉配置项
"Ulimits": [{}],
```
```
root@docker-azure:~# docker start 92a955bdf463
Error response from daemon: Cannot start container 92a955bdf463: [] System error: write /sys/fs/cgroup/cpuset/docker/92a955bdf463011c6fdee94e251faaf08c99a6a4146b0ec70827e0866720993c/cpuset.mems: invalid argument
Error: failed to start containers: [92a955bdf463]
root@docker-azure:~# exit
修改
"CpusetCpus": "",
"CpusetMems": "",
```
```
kaiming@docker-azure:~$ sudo docker start 8bb5f03f9ff7
Error response from daemon: Cannot start container 8bb5f03f9ff7: [] System error: exec: "": executable file not found in $PATH
Error: failed to start containers: [8bb5f03f9ff7]
kaiming@docker-azure:~$
```