Docker Community Forums

Share and learn in the Docker community.

Getting any output in docker restart?

docker

(Luisfarzati) #1

I have a Dockerfile like this:

CMD ["node", "/usr/src"]

docker run shows the output of that execution and then the container ends in Exited status.

I would expect docker restart to do the same, but I don’t get any output of the execution.

What I am missing here?

Thanks!


(Dvohra) #2

Use
docker run --restart=always