docker-archive / docker-registry

This is **DEPRECATED**! Please go to https://github.com/docker/distribution
Apache License 2.0
2.88k stars 879 forks source link

registry doesn't die #53

Closed cswank closed 11 years ago

cswank commented 11 years ago

I'm not sure if this is a bug or not, but when I run the registry in the foreground via docker like this:

% docker run samalba/docker-registry

Then control-c to kill it, it still appears to be running, according to docker ps.

% docker ps                                                                                                                                                                           
ID                  IMAGE                            COMMAND                CREATED           STATUS              PORTS
2458b528bdda        samalba/docker-registry:latest   /bin/sh -c cd /docke   5 seconds ago       Up 4 seconds        49169->5000

Is there a way to kill the registry without having to use 'docker kill'?

samalba commented 11 years ago

It's not a bug. The run commands actually runs the process and attach to it.

After your container is running, you can actually re-attach: % docker attach 2458b528bdda