无法杀死每 10 秒重新启动一次的 docker
Unable to kill a docker which restart each 10 seconds
我遇到异端 docker 容器的问题...我尝试遵循 this tutorial,尝试在我的新树莓派(我生命中的第一个树莓派)中构建一个 OpenVPN...而且我认为我确实做错了...我尝试 运行 重置策略:"always"
每次尝试 运行 这个容器都会出错,
standard_init_linux.go:211: exec user process caused "exec format error"
它尝试在 3 秒内每 10 秒 运行,或多或少,并且始终使用不同的 Docker 容器 ID。它 运行 也有不同的 PID...
我尝试了一些在 Internet 上找到的解决方案,试图阻止这种疯狂...
您似乎在使用 systemd 脚本。
你应该试试这个命令。
systemctl stop docker-openvpn@NAME.service
将 NAME
替换为您为服务指定的任何名称。
在他们的文档中有说明
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 docker-openvpn@NAME.service**
在 link
之后结账
如果您忘记了您的服务名称,您可以运行此命令并检查您的服务名称
systemctl --type=service
我遇到异端 docker 容器的问题...我尝试遵循 this tutorial,尝试在我的新树莓派(我生命中的第一个树莓派)中构建一个 OpenVPN...而且我认为我确实做错了...我尝试 运行 重置策略:"always"
每次尝试 运行 这个容器都会出错,
standard_init_linux.go:211: exec user process caused "exec format error"
它尝试在 3 秒内每 10 秒 运行,或多或少,并且始终使用不同的 Docker 容器 ID。它 运行 也有不同的 PID...
我尝试了一些在 Internet 上找到的解决方案,试图阻止这种疯狂...
您似乎在使用 systemd 脚本。
你应该试试这个命令。
systemctl stop docker-openvpn@NAME.service
将 NAME
替换为您为服务指定的任何名称。
在他们的文档中有说明
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 docker-openvpn@NAME.service**
在 link
之后结账如果您忘记了您的服务名称,您可以运行此命令并检查您的服务名称
systemctl --type=service