Docker: Container keeps on restarting again on again

后端 未结 11 1611
傲寒
傲寒 2020-12-22 18:55

I today deployed an instance of MediaWiki using the appcontainers/mediawiki docker image, and I now have a new problem for which I cannot find any clue. After trying to atta

11条回答
  •  忘掉有多难
    2020-12-22 19:19

    The docker logs command will show you the output a container is generating when you don't run it interactively. This is likely to include the error message.

    docker logs --tail 50 --follow --timestamps mediawiki_web_1
    

    You can also run a fresh container in the foreground with docker run -ti to see what that does. You may need to map some config from your docker-compose yml to the docker command.

    I would guess that attaching to the media wiki process caused a crash which has corrupted something in your data.

提交回复
热议问题