Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exit Code from docker run inconsistent #3767

Closed
errm opened this issue Jan 25, 2014 · 3 comments
Closed

Exit Code from docker run inconsistent #3767

errm opened this issue Jan 25, 2014 · 3 comments

Comments

@errm
Copy link

errm commented Jan 25, 2014

Host OS: Ubuntu Precise (The official docker Vagrant)

It seems like the exit code being returned by docker run may or may not be correct? It seems to be wrong 50% of the time.

vagrant@precise64:/assemblyline$ for i in `seq 1 50`
> do
> docker run stackbrew/ubuntu:saucy /bin/sh -c "exit 17"
> echo $?
> done
17
17
0
0
0
17
17
0
17
0
0
0
17
17
0
17
17
0
0
0
0
0
0
17
17
17
0
0
0
0
17
17
0
0
0
17
17
17
17
0
0
0
17
17
17
17
17
17
17
0
@tianon
Copy link
Member

tianon commented Jan 26, 2014

What's your docker version ? We've merged a bunch of fixes to the exit code handling into the latest master code, so if you're willing to test to see if they fix your issues, that'd be very helpful.

@errm
Copy link
Author

errm commented Jan 26, 2014

Docker version 0.7.6, build bc3b2ec

Is there a guide on how to build master somewhere?

@errm
Copy link
Author

errm commented Jan 26, 2014

Thanks it seems fixed in master

vagrant@precise64:/docker$ docker -v
Docker version 0.7.6-dev, build e6ae8f6-dirty
vagrant@precise64:/docker$ for i in `seq 1 50`; do docker run stackbrew/ubuntu:saucy /bin/sh -c "exit 17"; echo $?; done
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17
17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants