6167
V2EX  ›  Docker

用 docker24 版本建了个容器,之后回退卸载 docker 并回退到 docker 20.10.24,之后找不到容器和镜像,改配置有用吗?

  •  
  •   6167 · Jun 19, 2023 · 2045 views
    This topic created in 1130 days ago, the information mentioned may be changed or developed.
    端口还是占用的状态
    4 replies    2023-06-21 09:25:05 +08:00
    6167
        1
    6167  
    OP
       Jun 19, 2023
    复现了,服务器重启之后无论是 dockers ps -a 还是 docker images 都是空的,这是啥毛病?但是端口还是占用状态,进程还是存在的,和 docker 版本关系不大了
    julyclyde
        2
    julyclyde  
       Jun 20, 2023
    说明旧的 dockerd 退出的时候并没有把容器关掉
    zdking08135
        3
    zdking08135  
       Jun 20, 2023
    看看 docker 配置中 data-root 里面有没有内容:/etc/docker/daemon.json
    6167
        4
    6167  
    OP
       Jun 21, 2023
    已解决,服务器里存在 snap 版 docker ,和 apt 版 docker 冲突了,并且还会导致无法从外网访问容器映射端口的问题
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   950 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 20:22 · PVG 04:22 · LAX 13:22 · JFK 16:22
    ♥ Do have faith in what you're doing.