Answer the question
In order to leave comments, you need to log in
Why doesn't the RUN command start the docker container?
docker run --name test my_image
The command creates a container but does not start it. After the command I enter docker ps
and see that the container is not running. What's my mistake?
Answer the question
In order to leave comments, you need to log in
And what about Entrypoint and cmd?
If the process in the docker is terminated, then the container itself stops.
If there, for example, bash, then you need to rundocker run --name test -it my_image
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question