sudo docker ps -a -q sudo docker ps -a|cutawk '{print $1}' #删除前八条 sudo docker ps -a -q|head -n 8|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: [8] 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: [8] System error: exec: "": executable file not found in $PATH Error: failed to start containers: [8bb5f03f9ff7] kaiming@docker-azure:~$ ```
黑洞@heidsoft
Github:https://github.com/heidsoft
微博:http://weibo.com/liuganbin
热衷云计算和大数据
关注CloudStack,OpenStack,Linux c/c++/python/java
关注研究新技术
Github:https://github.com/heidsoft
微博:http://weibo.com/liuganbin
热衷云计算和大数据
关注CloudStack,OpenStack,Linux c/c++/python/java
关注研究新技术
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步