Docker Community Forums

Share and learn in the Docker community.

Ubuntu docker container start exited with code 0 on windows 10


(Dpkinfraspecialist) #1

I am trying to start an ubuntu container with name deepak, when I check the status of same post starting, I see “Exited (0) 5 minutes ago”, not sure what the issue is.

C:\Users\golfe\docker>docker container ls -a -f name=deepak
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b8f5464b4055 ubuntu “bash” 2 weeks ago Exited (0) 5 minutes ago deepak

C:\Users\golfe\docker>docker container start b8f
b8f

C:\Users\golfe\docker>docker container ls -a -f name=deepak
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b8f5464b4055 ubuntu “bash” 2 weeks ago Exited (0) 4 seconds ago deepak

I have another ubuntu container with name test1, how many ever times I stop and start it, I dont have any issues,

C:\Users\golfe\docker>docker container ls
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d82171057a1f ubuntu “bash” 20 hours ago Up 36 minutes test1

C:\Users\golfe\docker>docker container stop test1
test1

C:\Users\golfe\docker>docker container ls -a -f name=test1
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d82171057a1f ubuntu “bash” 20 hours ago Exited (0) 5 seconds ago test1

C:\Users\golfe\docker>docker container start test1
test1

C:\Users\golfe\docker>docker container ls -f name=test1
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d82171057a1f ubuntu “bash” 20 hours ago Up 8 seconds test1

C:\Users\golfe\docker>

I want to fix the issue with “deepak” container, and also would like to understand, if there is any docker specific logs I can check to see, whats exactly happening to the start command that I am executing.