zoukankan      html  css  js  c++  java
  • docker 容器创建参数错误记录

    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
    ","stream":"stdout","time":"2015-09-01T05:39:48.79123Z"}
    {"log":"  Did you forget to add -e MYSQL_ROOT_PASSWORD=... ?
    ","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:~$ 
    ```
  • 相关阅读:
    GIT提交修改的项目到远程仓库
    MySQL基础知识总结
    IDEA集成码云gitee
    SpringBoot整合ueditor编辑器
    word2010中统一调整表格格式
    Afinal简介和使用方法
    Java 8 安装——使用华为镜像
    微信小程序调用第三方组件
    webpack-dev-server first try
    性能测试应用领域
  • 原文地址:https://www.cnblogs.com/heidsoft/p/4891413.html
Copyright © 2011-2022 走看看