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
docker start
exits with code 0 on error
#1872
Comments
What do you suggest as an alternative? |
How about returning 1 when the command fails? Bash (and friends) treat the exit code 0 as success and non-0 as failure. So with the current situation, this doesn't work as expected:
The first command fails, but the second command runs anyway because the first command returned 0. |
@mkscrg what about the error message? |
The message is great! It's just the exit code that's troublesome. |
Thanks, this will be resolved with the host integration features. I am tagging this for 0.7. |
It seems that |
Yes you are correct. Docker build is a little more complex because of the stream that we return. It involves a little more refactoring to return the error code. |
I think this issue can be closed, The build command is still buggy, but there's issue #1150 which covers it. |
Scripting against
docker
is complicated by this:The text was updated successfully, but these errors were encountered: