You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* Template is copied from https://github.com/moby/moby/blob/44bca1adf3c806c4ed6688d67c6f995653b09b26/contrib/init/systemd/docker.service#L2 with the following changes:
--tlskey {{.AuthOptions.ServerKeyRemotePath}} {{ range .EngineOptions.Labels }}--label {{.}} {{ end }}{{ range .EngineOptions.InsecureRegistry }}--insecure-registry {{.}} {{ end }}{{ range .EngineOptions.RegistryMirror }}--registry-mirror {{.}} {{ end }}{{ range .EngineOptions.ArbitraryFlags }}--{{.}} {{ end }}
109
109
ExecReload=/bin/kill -s HUP \$MAINPID
110
110
111
111
# Having non-zero Limit*s causes performance problems due to accounting overhead
@@ -117,13 +117,13 @@ LimitCORE=infinity
117
117
# Uncomment TasksMax if your systemd version supports it.
118
118
# Only systemd 226 and above support this version.
119
119
TasksMax=infinity
120
-
TimeoutStartSec=0
121
120
122
121
# set delegate yes so that systemd does not reset the cgroups of docker containers
123
122
Delegate=yes
124
123
125
124
# kill only the docker process, not all processes in the cgroup
/* Template is copied from https://github.com/moby/moby/blob/44bca1adf3c806c4ed6688d67c6f995653b09b26/contrib/init/systemd/docker.service#L2 with the following changes:
75
+
ExecStart: additional flags are added
74
76
77
+
StartLimitBurst=3 : The service can be restarted up to 3 times within the time window defined by StartLimitIntervalSec.
78
+
79
+
StartLimitIntervalSec=60 : The time window is 60 seconds. If the service fails and restarts more than 3 times in 60 seconds, systemd will stop trying to restart it automatically.
--tlskey {{.AuthOptions.ServerKeyRemotePath}} {{ range .EngineOptions.Labels }}--label {{.}} {{ end }}{{ range .EngineOptions.InsecureRegistry }}--insecure-registry {{.}} {{ end }}{{ range .EngineOptions.RegistryMirror }}--registry-mirror {{.}} {{ end }}{{ range .EngineOptions.ArbitraryFlags }}--{{.}} {{ end }}
112
124
ExecReload=/bin/kill -s HUP \$MAINPID
113
125
114
126
# Having non-zero Limit*s causes performance problems due to accounting overhead
@@ -127,6 +139,7 @@ Delegate=yes
127
139
128
140
# kill only the docker process, not all processes in the cgroup
0 commit comments