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:
Adam Harrison committed 2015-11-12 14:58:54 +00:00
1 parent c345700963
commit 04ab198e95
1 file changed
+1
+1
View File
@@ -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 \