Exited with code 0 immediatly after booting

after pulling and running This image the resulting container exits immediately every time i boot it.

What do you mean by “boot it”?

A container starts the entrypoint script and/or command declared in the image. If the started container does not run a foreground process, it successfully finishes, and you get the exit code 0.

Please share how you create the container, and share why you expect the container to be kept running (especially give what I wrote above).

I pull the apline docker image and run it to create the container but when ever i try and use it it just exits immediately when ever i run it.

Please share the exact docker run or compose file content, so we can understand not just what you do, but exactly how you do it.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.