Docker Community Forums

Share and learn in the Docker community.

Getting any output in docker restart?


(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?


(Dvohra) #2

docker run --restart=always