Topic on Project:Support desk

Klein Muçi (talkcontribs)

Straightforward question:

If I use docker-compose up -d everything works fine and I get Mediawiki running on my localhost and my bash works fine.

If I use docker-compose up I get this: https://pastebin.com/FL8u9iHv and my bash freezes there. This got me curious. What am I lacking/doing wrong, if anything?

Bawolff (talkcontribs)

So -d means detach and put it in the background.

I am not that familar with docker-compose so this may be wrong, but what i think is happening: since you dont detach you see debug info which would normally be hidden. Your terminal is attached to the apache process. Since apache does not take input (since it normally runs in the background) it simply ignores anything you press on the keyboard. Thus it looks like things are frozen, where really its not frozen its just apache ignores input on stdin and doesn't normally output anything.

Klein Muçi (talkcontribs)

Thank you! That's what is happening because it literally ignores everything beside Ctrl+C to exit gracefully. Do I have anything to really debug though? I mean, for Apache.

Bawolff (talkcontribs)

Probably not. Generally if you wanted to access the container, you would want to start a new /bin/sh process and connect to that.

Klein Muçi (talkcontribs)

Okay then. Thank you one more time! :)