Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up2089 fix restart runtime error #2409
Conversation
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Issue #2089 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
tianon
Oct 27, 2013
Member
Oops, I forgot that invoke-rc.d only works for init scripts (not upstart). If you replace that with service docker restart it will probably not error out and should give you a ghost like it's supposed to.
|
Oops, I forgot that invoke-rc.d only works for init scripts (not upstart). If you replace that with |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
pnasrat
Oct 27, 2013
Contributor
I actually just copied and pasted the wrong block (I reran with initctl stop). Let me just confirm that.
|
I actually just copied and pasted the wrong block (I reran with |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
pnasrat
Oct 27, 2013
Contributor
# ID=$(docker run -d busybox sleep 600)
Unable to find image 'busybox' (tag: latest) locally
Pulling repository busybox
e9aa60c60128: Download complete
# service docker restart
docker stop/waiting
docker start/running, process 10109
# docker kill $ID
8b4af5160c62
# docker inspect $ID | grep Ghost
"Ghost": true
# docker start $ID
8b4af5160c62
# docker -v
Docker version 0.6.4-dev, build 877be37-dirty
# docker ps
ID IMAGE COMMAND CREATED STATUS PORTS
8b4af5160c62 busybox:latest sleep 600 About a minute ago Up 52 seconds
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Cool! Major +1 from me for taking care of this! (although, IANTM) |
tianon
referenced this pull request
Oct 28, 2013
Closed
Add more documentation about containers having status `Ghost` #2419
vieux
reviewed
Oct 28, 2013
View changes
container.go
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
pnasrat
Oct 29, 2013
Contributor
@vieux please take another look - I've made an explicit nil network ip check and both unit and manual test still passes.
|
@vieux please take another look - I've made an explicit nil network ip check and both unit and manual test still passes. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
LGTM, ping @crosbymichael |
pnasrat
added some commits
Oct 26, 2013
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
pnasrat
Nov 3, 2013
Contributor
Need to rebase having some test failure issues. Will ping PR when fixed.
|
Need to rebase having some test failure issues. Will ping PR when fixed. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
pnasrat
Nov 3, 2013
Contributor
Have fixed up and my test passes with the signature change but getting failures
https://gist.github.com/pnasrat/d1fcd6bab3d2028c6c82
@ecnahc515 is also seeing the lxc-kill failures
|
Have fixed up and my test passes with the signature change but getting failures https://gist.github.com/pnasrat/d1fcd6bab3d2028c6c82 @ecnahc515 is also seeing the lxc-kill failures |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
pnasrat
Nov 3, 2013
Contributor
Actually I misread the output and it passes after I updated the host docker to be the same version https://gist.github.com/pnasrat/d1fcd6bab3d2028c6c82
@crosbymichael should be ready for review.
|
Actually I misread the output and it passes after I updated the host docker to be the same version https://gist.github.com/pnasrat/d1fcd6bab3d2028c6c82 @crosbymichael should be ready for review. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
LGTM |
pnasrat commentedOct 27, 2013
Tested with unittest and latest reproducer in bug.