-
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 exec: the input device is not a TTY #7306
Comments
you can try either: see discussion: #5696 |
@lingster neither of those works:
|
Experiencing the same issue! |
I'm experiencing this issue when running a |
I am trying to backup a database from MySQL image and I am getting the same issue.
|
|
Got similar problem, when was trying to run laravel schedule in docker via cron. My solution is type in host terminal: add this line: save and look at log.txt |
I ran into this problem in a GCP environment in a startup script, where I didn't even see the error. |
@carbolymer is your description up to date with docker-compose version 1.27.4? I also get |
@jennydaman yes, it still does not work. Everyone else commenting here that |
Yeah the original problem is not solved; those saying that My guess is that |
Heylow, my 2 cents here. nb: I came here indeed searching for "docker-compose exec input device is not a TTY", therefore, my problem is solved, I was seaching for the "-T" parameter ;-) |
@alaincao Well, you're right. But you can get around this using: |
Well, I don't think that even in the case of |
I really think you should invoke |
Just to add some practical perspective, I observed the following with a mysql:8.0 container (defined as
|
I came here looking for a totally different purpose. Wanted to add docker commands to a Solved it using: Thanks for the dynamic container id idea. :) |
Compose v2 automatically applies |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it had not recent activity during the stale period. |
👀 |
Containarize application along with database for development and testing activities. Setup CI pipelines (Github actions) to run tests and build. Added scripts improve developer experience. docker/compose#7306
Containarize application along with database for development and testing activities. Setup CI pipelines (Github actions) to run tests and build. Added scripts improve developer experience. docker/compose#7306
I can think of two scenarios where this error may occur:
|
Description of the issue
Cannot start interactive shell (e.g.
/bin/bash
) usingdocker-compose -f - exec
Context information (for bug reports)
Output of
docker-compose version
Output of
docker version
Steps to reproduce the issue
Observed result
Command quits immediately with the following message:
Expected result
Interactive shell starts
The text was updated successfully, but these errors were encountered: