docker-cronicle icon indicating copy to clipboard operation
docker-cronicle copied to clipboard

foreground run can't be killed with ctrl-c

Open nicholasamorim opened this issue 5 years ago • 4 comments

If one runs this image in the foreground, it's not possible to kill the server and exit using ctrl-c.

nicholasamorim avatar May 30 '19 09:05 nicholasamorim

How are u running it? Do you have the execution command you used?

iwalucas avatar May 30 '19 12:05 iwalucas

docker run --name cronicle --hostname localhost -p 3012:3012 intelliops/cronicle

Then I try ctrl-c but it's stuck. Have to kill the container. Had this problem both on ubuntu and on mac os.

nicholasamorim avatar May 30 '19 13:05 nicholasamorim

I saw your other issue, I am having the same problem... can't seem to make it work, but I was able to kill the container, though

iwalucas avatar May 30 '19 13:05 iwalucas

You need to attach the console to the container, like:

docker run -it --rm --name cronicle --hostname localhost -p 3012:3012 intelliops/cronicle

I also use --rm for testing, so that the exited containers are automatically removed. Check: Docker run reference

gprossliner avatar Sep 11 '19 13:09 gprossliner