When I run docker-compose exec in crontab, I get "the input device is not a TTY"


Use the -T option

Settings when there is a problem

0 4 * * * docker-compose exec {container_name} {some_command}

Settings after resolution

0 4 * * * docker-compose exec -T {container_name} {some_command}


I'm not sure, but docker-compose exec is assigned a pseudo tty by default. The option to cancel it is -T.

-T Disable pseudo-tty allocation. By default docker-compose execallocates a TTY.



Recommended Posts

When I run docker-compose exec in crontab, I get "the input device is not a TTY"
When the project is not displayed in eclipse
When I try to run docker-compose, I get the error "Cannot locate specified Dockerfile: Dockerfile"
When I run the source command in the Ubuntu Makefile, it says "source: command not found"
When I run rails: db: migrate, I get "Directly inheriting from ActiveRecord :: Migration is not supported."
What I did when the DB did not start with docker-compose up
What to do if Operation not permitted is displayed when you execute a command in the terminal
I want to get the IP address when connecting to Wi-Fi in Java
In WSL2, when I did `docker-compose up`, I got an error saying that the sh file was not found.
.sql file does not run in docker-compose
What I tried when I wanted to get all the fields of a bean
(Capistrano) After deploying, I get a We're sorry… error in the production environment.
How to set when "The constructor Empty () is not visible" occurs in junit
[When using MiniMagick] A memorandum because I stumbled in the CircleCI test environment.
I managed to get a blank when I brought the contents of Beans to the textarea
Cause of is not visible when calling a method of another class in java
When displaying a message with a JSF custom validator, the errorClass of h: message is not applied unless SEVERITY_ERROR is set in the message.
When I call the file with Class # getResource from the jar file, it becomes Not Found and it is a crappy memorandum
When you get lost in the class name
I get an error when adding a dependency
Ebean.update () is not executed in the inherited model.
I want to get the value in Ruby
I stumbled when I tried using neo4j in the jenv environment, so make a note
Processing when an ID that does not exist in the database is entered in the URL
[Ruby on Rails] I get a warning when running RSpec because gem'chromedriver-helper' is deprecated.
I have a question. I get an error when playing a video in Listview on android.
A memo when "I do not get a certificate error with a self-signed certificate using Java's Keytool"