86322989
V2EX  ›  问与答

docker 重启 discuz 容器失败

  •  
  •   86322989 · Jan 6, 2018 · 3745 views
    This topic created in 3224 days ago, the information mentioned may be changed or developed.

    docker 运行了一个 discuz, 但是因为 vps 运行商重启机器停掉了.

    当用 docker restart 重启这个容器时,起不来. 有知道原因的吗?

    当时启动时的情况: docker run --name my-discuz2 --link bbs-mysql:mysql -p 127.0.0.1:8080:80 -d skyzhou/docker-discuz

    docker start -i xxxx 报错情况: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.5. Set the 'ServerName' directive globally to suppress this message httpd (pid 1) already running

    5 replies  •  2018-01-10 19:14:22 +08:00
    singer
    singer
    PRO
    Jan 6, 2018 via iPhone
    1
    docker ps -a 先看看已存在但没运行起来的容器。
    然后选择你的容器的 id,docker start id
    ge2009
    ge2009
    Jan 7, 2018
    2
    我觉得楼主这种可以直接写 docker compose 会更方便和好用些吧.
    86322989
    86322989
    OP
    Jan 10, 2018
    3
    @singer 就是这样才起不来啊
    86322989
    86322989
    OP
    Jan 10, 2018
    4
    @ge2009 跟 compose 没关系. 现在就想解决容器起不来的问题
    singer
    singer
    PRO
    Jan 10, 2018 via iPhone
    5
    @86322989 你的 httpd 已经起来了,当然起不动
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1076 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 21:28 · PVG 05:28 · LAX 13:28 · JFK 16:28
    ♥ Do have faith in what you're doing.