Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

foreground run can't be killed with ctrl-c #20

Open
nicholasamorim opened this issue May 30, 2019 · 4 comments
Open

foreground run can't be killed with ctrl-c #20

nicholasamorim opened this issue May 30, 2019 · 4 comments

Comments

@nicholasamorim
Copy link

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

@iwalucas
Copy link

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

@nicholasamorim
Copy link
Author

nicholasamorim commented May 30, 2019

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.

@iwalucas
Copy link

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

@gprossliner
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants