Skip to content

Instantly share code, notes, and snippets.

@rgarcia
Last active April 4, 2018 07:52
Show Gist options
  • Save rgarcia/dfdf41844668d4cc13bc to your computer and use it in GitHub Desktop.
Save rgarcia/dfdf41844668d4cc13bc to your computer and use it in GitHub Desktop.
supervisord docker run
[inet_http_server]
port=0.0.0.0:9001
[supervisord]
logfile=out.log
loglevel=info
nodaemon=true
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
[program:docker_container]
command=docker -H tcp://localhost:4243 run --sig-proxy -i ubuntu sleep 1000000
stdout_logfile=./container.log
stderr_logfile=./container.log
@rgarcia
Copy link
Author

rgarcia commented Jul 29, 2014

# start supervisord in the background
supervisord -c supervisor.conf &

# check that container is running
docker ps

# tell supervisord to stop the "docker_container" process, i.e. docker run ..., via KILL
supervisorctl stop docker_container

# check that container has stopped running (it hasn't)
docker ps

@ngrilly
Copy link

ngrilly commented Apr 4, 2018

Hello. I have the same issue. Have you solved it?

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