S
S
semki0962017-04-17 22:27:48
Docker
semki096, 2017-04-17 22:27:48

Why doesn't the RUN command start the docker container?

docker run --name test my_imageThe command creates a container but does not start it. After the command I enter docker psand see that the container is not running. What's my mistake?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shvets, 2017-04-18
@semki096

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 question

Ask a Question

731 491 924 answers to any question