-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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-compose up
hangs when tty parameter is true
#3106
Comments
From the title it sounds like this works for you if you remove the Please include the output of |
Updated. It works without |
ran into the same issue
|
So the important information I was missing is that it sits and waits for a timeout to happen. This error happens after 60 seconds, not right away, correct? This is because we have a timeout, and after some period of no activity, you hit the timeout and it disconnects. There is some good discussion here: #2338 (comment) We need to look at either removing the timeout, or set TCP keep-alive (or possibly both). |
On master I'm seeing a clear |
It turns out that non-tty mode already disables the timeout in |
I did this instead of
and then: |
@igorpejic : a bit ugly, but hey, it seems to work! |
@igorpejic, instead if I want to use I'm in the 60sec timeout problem right now. |
@mrkongo What hinders you from using my solution? |
There's an erratic timeout error that makes this option confusing: docker/compose#3106
We are currently Dockerizing our app for local development and as you can imagine, debugging forms a key part of the experience. Using something like On the other hand, if you want to attach to a process you need to set Unfortunately, setting
What are options? |
Until this bug gets fixed you can set a big timeout to avoid the error: COMPOSE_HTTP_TIMEOUT=60000 docker-compose --verbose logs -f app |
@shin- I tried just now with
on my |
I just realised I was running an old version ( So I have these values for the service in my
The service executes my Node.js script in a TTY (so I get colour output etc) but still exits as soon as the script ends because it isn't holding STDIN open. |
to be removed... docker/compose#3106
to be removed... docker/compose#3106
As wyqydsyq said, I upgraded to the latest version too and sudently Docker version 17.12.0-ce, build c97c6d6 |
I'm still having this issue with docker-compose |
Same issue with |
The same on Windows |
Same issue on Mac Version 18.06.1-ce-mac73 (26764) |
Doesnt seem to work for me in windows containers. Not tried linux containers. as suggested by some comments as well. But i get a waiting cursor but cant seem to type any commands. |
For me worked |
@rgorodischer @mmihaila I'm currently experiencing this same problem in MacOS Version 18.06.1-ce-mac73 (26764) :( |
I've tried everything suggested in this post for Windows using Docker Toolbox, and no luck! |
@therussiankid92 do you have any reasons to use Docker Toolbox instead of Docker Desktop? |
Yes, I'm running on Windows Home, and Docker Desktop doesn't seem to be available for this version of Windows |
@therussiankid92 can you fill a new issue with as much details as possible ( Docker Toolbox version, docker engine & cli version, docker compose version...)? |
@therussiankid92 maybe a good news for you if you have a Windows 10 Home |
Thats good, thanks a lot for the reply. I'll give it a try and see what
happens. Will update both issues.
…On Mon, Mar 2, 2020, 20:51 Guillaume LOURS ***@***.***> wrote:
@therussiankid92 <https://github.com/therussiankid92> maybe a good news
for you if you have a Windows 10 Home
[image: Screen Shot 2020-03-02 at 8 50 27 PM]
<https://user-images.githubusercontent.com/705411/75711951-7b979380-5cc7-11ea-86ad-321899878969.png>
https://twitter.com/sferquel/status/1234540699548364802
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3106?email_source=notifications&email_token=AJCV7OXFBJBXCPSXRHGLET3RFQE2TA5CNFSM4B5XXCAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENQWLJY#issuecomment-593585575>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJCV7OQ5ZXCFJMMV7MCZ7LLRFQE2TANCNFSM4B5XXCAA>
.
|
Also stumbled with such a problem on Mac Catalina with latest docker. Are there any workaround for MacOS? Tried all combinations for |
Here's a minimal setup to reproduce the issue:
Dockerfile content:
docker-compose.yml content:
Here's what happens when I try docker-compose up:
My user is added to
docker
group, and the output is the same when run fromsudo
.It manages to attach only with
docker-compose run
command.I tried the experiment with same outcomes on
Docker version 1.9.1, build a34a1d5
, and compose versions1.4.0
,1.6.0
, and1.6.2
.UPD:
docker info output:
docker-compose --verpose up
output:The text was updated successfully, but these errors were encountered: