Bruno Peixoto
Bruno Peixoto

Reputation: 229

Docker containarized application refuses to die

I am not very familiar to docker and its multiple applications. I use it to host this NodeJS application by run of below command:

docker build -t quivero . && docker run --publish 8080:8080 quivero

It builds the application as we wish, but I have trouble to bring it down. I tried the usual ctrl+C or ctrl+Z. I tried as well sudo docker kill $CONTAINER_ID

Error response from daemon: Cannot kill container: $CONTAINER_ID: permission denied

It seems to me docker compose up is rather preferred. What do you think?

Upvotes: 0

Views: 45

Answers (1)

Vlad Farsiyants
Vlad Farsiyants

Reputation: 188

You can check running containers with command

docker ps

Then if you want to stop the container you need to write

docker stop [container name]

so for you

docker stop quivero

if you need to remove stopped container you can write

docker rm [container name]

Upvotes: 1

Related Questions