Reputation: 105
I have rogues docker containers running on my system. I have tried to kill them but they seem to restart again.
I have tried to remove the restart option in the hostconfig.json of the container, with no luck.
I have even tried to clear all the images.
is there any way to force kill these containers?
Upvotes: 3
Views: 2033
Reputation: 703
You may have started it as a service. Check to see if that is the case by running:
docker service ls
If you see your service there you can delete it by doing
docker service rm <service id>
You could also docker service inspect <service id>
to see more details about what the service is and why it is respawning.
Upvotes: 6