Last active
November 7, 2017 12:48
-
-
Save yoshikaw/fe72b503c632022ada69086d84846b6d to your computer and use it in GitHub Desktop.
difference of docker.service unit file between docker-engine-17.03.1.ce-3.0.1.el7.x86_64 and docker-engine-17.06.2.ol-1.0.1.el7.x86_64.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -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 | |
@@ -23,6 +24,10 @@ | |
Delegate=yes | |
# kill only the docker process, not all processes in the cgroup | |
KillMode=process | |
+# restart the docker process if it exits prematurely | |
+Restart=on-failure | |
+StartLimitBurst=3 | |
+StartLimitInterval=60s | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment