Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
215 views
in Technique[技术] by (71.8m points)

Docker and Airflow - Error to init the container

I got the below issue when I try to start the container where I am running airflow:

"Incorrect remote log configuration. Please check the configuration of option 'host' in "

That is happening after I change the remote_logging from False to True.

My container is not starting because of this and hence I don't get to come back to the previous configuration. Is there a way I can get come back to the previous version or fix it without needing to create a new environment?

question from:https://stackoverflow.com/questions/65839298/docker-and-airflow-error-to-init-the-container

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

If you have a container that won't keep running, but you want to start it for experimentation or modification, you can always overwrite the entrypoint config like this:

 docker run -it --entrypoint sh <docker-image>

Once you have the container shell open, you can make your modifications and then start the process that the container would have normally started, e.g. Airflow.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...