• 关于启动Docker容器的错误:OCI runtime create failed: container with id exists


    环境

    系统:centos7.6

    Docker:20.10.7

    症状

    在执行如下启动命令后docker start mysqlserver出现了一下异常报错

    1 docker start mysqlserver
    2 Error response from daemon: OCI runtime create failed: container with id exists: c29c0bc9836880aa883d1ac7e50da56656ed9b2c5499831f3610d775997aa5f2: unknown
    3 Error: failed to start containers: mysqlserver

    解决方案

     1 # 进入如下目录
     2 cd /run/docker/runtime-runc/moby
     3 
     4 # 执行ls命令可以查看到类似显示
     5 ls
     6 2901da5462f792296b36ce7e982d8ef66233fce3c78c8c150522893625768e56
     7 c29c0bc9836880aa883d1ac7e50da56656ed9b2c5499831f3610d775997aa5f2
     8 ed4c1c5e03c74b3ce4c41aafbb5f276064d51546f8359ed493b3623a0baaf648
     9 
    10 # 通过rm -rf命令删除文件夹
    11 # 例如删除症状中的错误id(c29c0bc9836880aa883d1ac7e50da56656ed9b2c5499831f3610d775997aa5f2)对应的文件夹
    12 rm -rf c29c0bc9836880aa883d1ac7e50da56656ed9b2c5499831f3610d775997aa5f2/
    13 
    14 # 删除后重新执行命令,即可启动容器
    15 docker start mysqlserver
  • 相关阅读:
    vb.net的数据类型
    PHP常用函数
    399. Evaluate Division
    329. Longest Increasing Path in a Matrix
    415. Add Strings
    463 Island Perimeter
    400. Nth Digit
    401. Binary Watch
    391. Perfect Rectangle
    406. Queue Reconstruction by Height
  • 原文地址:https://www.cnblogs.com/boboblue/p/15589360.html
Copyright © 2020-2023  润新知