Skip to content

Commit

Permalink
Set restart policy to 'always'
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
awh committed Nov 12, 2015
1 parent 885dba5 commit d435d0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions weave
Expand Up @@ -1563,6 +1563,7 @@ stop_proxy() {

launch_plugin() {
PLUGIN_CONTAINER=$(docker run --privileged -d --name=$PLUGIN_CONTAINER_NAME \
--restart=always \
--net=host \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /run/docker/plugins:/run/docker/plugins \
Expand Down

0 comments on commit d435d0b

Please sign in to comment.