86322989
V2EX  ›  问与答

docker 重启 discuz 容器失败

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