Skip to content

Instantly share code, notes, and snippets.

@sftekin
Last active June 27, 2020 16:49
Show Gist options
  • Save sftekin/f923b0ef234b97675467f24245cc9501 to your computer and use it in GitHub Desktop.
Save sftekin/f923b0ef234b97675467f24245cc9501 to your computer and use it in GitHub Desktop.
docker running like nohup

You need create your container first.

$ docker exec -t <container_id> python weather_pipeline.py >> /path/to/log_file/weather.log 2>&1

Ctrl + Z, to stop the job, and, bg to continue the job finally, disown %1 to disown the job. You can close terminal now and go home :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment