Skip to content

Instantly share code, notes, and snippets.

@yoshikaw
Last active November 7, 2017 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoshikaw/fe72b503c632022ada69086d84846b6d to your computer and use it in GitHub Desktop.
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.
@@ -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