Docker: Container keeps on restarting again on again

后端 未结 11 1590
傲寒
傲寒 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:09

    When docker kill CONTAINER_ID does not work and docker stop -t 1 CONTAINER_ID also does not work, you can try to delete the container:

    docker container rm CONTAINER_ID
    

    I had a similar issue today where containers were in a continuous restart loop.

    The issue in my case was related to me being a poor engineer.

    Anyway, I fixed the issue by deleting the container, fixing my code, and then rebuilding and running the container.

    Hope that this helps anyone stuck with this issue in future

提交回复
热议问题