From dfa4e77d8202f5c682056b59be3111eccddfb09a Mon Sep 17 00:00:00 2001 From: Dmitry Kononenko Date: Tue, 27 Dec 2016 19:25:12 +0700 Subject: [PATCH] bugfix issie 18826: containers do not restart after reboot when bound to virtual network interface Signed-off-by: Dmitry Kononenko --- contrib/init/systemd/docker.service | 3 ++- contrib/init/systemd/docker.service.rpm | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/init/systemd/docker.service b/contrib/init/systemd/docker.service index 41a6627997..517463172b 100644 --- a/contrib/init/systemd/docker.service +++ b/contrib/init/systemd/docker.service @@ -1,7 +1,8 @@ [Unit] Description=Docker Application Container Engine Documentation=https://docs.docker.com -After=network.target docker.socket firewalld.service +After=network-online.target docker.socket firewalld.service +Wants=network-online.target Requires=docker.socket [Service] diff --git a/contrib/init/systemd/docker.service.rpm b/contrib/init/systemd/docker.service.rpm index 7ff27e8a54..6c60646b56 100644 --- a/contrib/init/systemd/docker.service.rpm +++ b/contrib/init/systemd/docker.service.rpm @@ -1,7 +1,8 @@ [Unit] Description=Docker Application Container Engine Documentation=https://docs.docker.com -After=network.target firewalld.service +After=network-online.target firewalld.service +Wants=network-online.target [Service] Type=notify