Posted By: Anonymous
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 attach to the mediawiki front container using:
docker attach mediawiki_web_1
Terminated on my configuration for a reason I ignore, trying also:
docker exec -it mediawiki_web_1 bash
I do get something close to an error message:
Error response from daemon: Container 81c07e4a69519c785b12ce4512a8ec76a10231ecfb30522e714b0ae53a0c9c68 is restarting, wait until the container is running
And there is my new problem, because this container never stop restarting. I can see that using
docker ps -a which always returns a STATUS of
Restarting (127) x seconds ago.
The thing is, I am able to stop the container (I tested) but starting it again seems to bring it back into its restarting loop.
Any idea what could be the issue here ? The whole thing was properly working until I tried to attach to it…
I am sad 🙁
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 <your_wiki_image> to see what that does. You may need to map some config from your
docker-compose yml to the
I would guess that attaching to the media wiki process caused a crash which has corrupted something in your data.