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

"docker run -t" exits with return code 0 always (tty-mode) #6259

Closed
blueyed opened this issue Jun 7, 2014 · 2 comments
Closed

"docker run -t" exits with return code 0 always (tty-mode) #6259

blueyed opened this issue Jun 7, 2014 · 2 comments

Comments

@blueyed
Copy link

blueyed commented Jun 7, 2014

TEST CASE:

% docker run -t busybox false
% echo $?
0

% docker run -i -t busybox false
% echo $?
1

There have been some issues being reported in this regard previously, and some commits being made (e.g. #4346), so it might have regressed.

The exit code is reported correctly in docker ps and with docker inspect.

Using Docker 0.12.0.

/cc #354.

@tiborvass
Copy link
Contributor

This has been fixed some time ago, and is definitely fixed in the latest release.
@blueyed please comment if you still see this with Docker 1.1.1.

@blueyed
Copy link
Author

blueyed commented Jul 14, 2014

I can confirm that this is fixed in 1.1.1.

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