Repository navigation
Closed
Milestone
Description
To replicate:
root:~# docker run base /bin/echo hello world 2013/03/29 16:52:07 docker run base /bin/echo hello world
hello world
root:~# docker ps
2013/03/29 16:52:13 docker ps
ID IMAGE COMMAND CREATED STATUS COMMENT
root:~# docker ps -a
2013/03/29 16:52:15 docker ps -a
ID IMAGE COMMAND CREATED
STATUS COMMENTb471a5ea0aeb1c33ef0a6a600f2cb6e675372e1138bde5f439a0de3c832ea731 base:latest /bin/echo hello worl 8 seconds ago
Exit 0
root:~# docker start b471a5ea0aeb1c33ef0a6a600f2cb6e675372e1138bde5f439a0de3c832ea731
2013/03/29 16:52:21 docker start b471a5ea0aeb1c33ef0a6a600f2cb6e675372e1138bde5f439a0de3c832ea731
b471a5ea0aeb1c33ef0a6a600f2cb6e675372e1138bde5f439a0de3c832ea731
root:~# docker logs b471a5ea0aeb1c33ef0a6a600f2cb6e675372e1138bde5f439a0de3c832ea731
2013/03/29 16:52:26 docker logs b471a5ea0aeb1c33ef0a6a600f2cb6e675372e1138bde5f439a0de3c832ea731
hello world
root:~# docker ps
2013/03/29 16:52:27 docker ps
ID IMAGE COMMAND CREATED
STATUS COMMENTb471a5ea0aeb1c33ef0a6a600f2cb6e675372e1138bde5f439a0de3c832ea731 base:latest /bin/echo hello worl 20 seconds ago
Up 6 seconds
root:~# docker stop b471a5ea0aeb1c33ef0a6a600f2cb6e675372e1138bde5f439a0de3c832ea731
2013/03/29 16:52:38 docker stop b471a5ea0aeb1c33ef0a6a600f2cb6e675372e1138bde5f439a0de3c832ea731
2013/03/29 16:52:38 lxc-kill: 'b471a5ea0aeb1c33ef0a6a600f2cb6e675372e1138bde5f439a0de3c832ea731' is not running
lxc-kill: failed to get the init pid
2013/03/29 16:52:38 Failed to send SIGTERM to the process, force killing
2013/03/29 16:52:48 Container b471a5ea0aeb1c33ef0a6a600f2cb6e675372e1138bde5f439a0de3c832ea731 failed to exit within 10 seconds of SIGTERM - using the force
b471a5ea0aeb1c33ef0a6a600f2cb6e675372e1138bde5f439a0de3c832ea731
root:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
none 114871816 2175800 106860808 2% /var/lib/docker/containers/b471a5ea0aeb1c33ef0a6a600f2cb6e675372e1138bde5f439a0de3c832ea731/rootfs
The JSON for this container thinks its running, it is not running though, the command exited. This occurs whether in standalone mode or daemon.
Metadata
Metadata
Assignees
Labels
No labels
Activity
bbangert commentedon Mar 29, 2013
This is probably related to Issue #109.
creack commentedon Mar 31, 2013
The issue occurs only in stand alone mode.
When doing 'start', as docker will not wait for the process to finish and leave, the process is nerver marked as 'stopped'.
We need a better check of the status of containers when docker starts. Will do that now :)
It might also be nice to add a 'wait' option to docker start? or to be aware that we are in standalone mode.
@shykes any thoughts?
creack commentedon Apr 1, 2013
I fixed the issue by adding a better check of the running state in runtime.restore().
I still need to add unit tests and I'll push
Added check in runtime.restore() for crashed containers still marked …
Added check in runtime.restore() for crashed containers still marked …
Merge pull request moby#257 from thaJeztah/18.09_backport_increase_sw…
Merge pull request moby#257 from mrjana/overlay