Hello guys. Good day!
I’m stuck with this problem and I can’t quite figure out why:
Material
Course: Docker for the Absolute Beginner
Chapter: Docker Comepose - Demo - Example Voting application
Video link here: Docker Training Course for the Absolute Beginner | KodeKloud
Time stamp: 12: 40
Problem:
In the demo video, the docker run
order is:
run redis
run voting-app
run postgres
-
run worker-app
…
In the demo video, when Mumshad runs step 3, the postgres is up and running so the worker gets linked no problem in the 4th step. But when I run step 3 postgres, it exits immediately and I can’t link the worker in the next step.
I am aware that you can’t run a container without any process running in it. I followed exactly what Mumshad did. Not a single word changed in my attempt. What’s the magic that I’m missing here? How can you keep postgres alive?
I’d appreciate anybody’s input,
Thank you!