Set restart policy to 'always'
Docker attempts to recreate networks on startup which means the plugin container has to be started. If it isn't started automatically by Docker with a restart policy, it's not possible to start it manually because Docker is blocked.
This commit is contained in:
1 parent
c345700963
commit
04ab198e95
1 file changed
+1
@@ -1563,6 +1563,7 @@ stop_proxy() {
|
|||||||
|
|
||||||
launch_plugin() {
|
launch_plugin() {
|
||||||
PLUGIN_CONTAINER=$(docker run --privileged -d --name=$PLUGIN_CONTAINER_NAME \
|
PLUGIN_CONTAINER=$(docker run --privileged -d --name=$PLUGIN_CONTAINER_NAME \
|
||||||
|
--restart=always \
|
||||||
--net=host \
|
--net=host \
|
||||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
-v /run/docker/plugins:/run/docker/plugins \
|
-v /run/docker/plugins:/run/docker/plugins \
|
||||||
|
|||||||
Reference in new issue
Block a user