Krakenudo
Krakenudo

Reputation: 309

Unable to kill a docker which restart each 10 seconds

I have problems with a heretic docker container... I tried to follow this tutorial, trying to build a OpenVPN in my new raspberry (the first one in my life)... and I think I did something really wrong... I tried to run it with reset policy: "always"

This container has an error each time I try to run it,

standard_init_linux.go:211: exec user process caused "exec format error"

It tries to run each 10 seconds during 3 seconds, more or less, and always with a different Docker Container ID. It runs with different PID, too...

I've tried some solutions I've found on the Internet, trying to stop this madness...

Upvotes: 0

Views: 102

Answers (1)

Rahul Goel
Rahul Goel

Reputation: 890

It seems you are using systemd script.

You should try with this command. systemctl stop [email protected] replace NAME with whatever name you have given to your service.

It is stated in their documentation

In the event the service dies (crashes, or is killed) systemd will attempt to restart the service every 10 seconds until the service is stopped with **systemctl stop [email protected]**

Checkout following link

In case you forgot your service name, you can run this command and check your service name systemctl --type=service

Upvotes: 2

Related Questions