Browse Source
Merge pull request #2429 from riverzhang/patch-6
Fix Docker exits prematurely
pull/2460/head
RongZhang
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
1 deletions
-
roles/docker/templates/docker.service.j2
|
|
@ -31,7 +31,10 @@ LimitNOFILE=1048576 |
|
|
|
LimitNPROC=1048576 |
|
|
|
LimitCORE=infinity |
|
|
|
TimeoutStartSec=1min |
|
|
|
Restart=on-abnormal |
|
|
|
# restart the docker process if it exits prematurely |
|
|
|
Restart=on-failure |
|
|
|
StartLimitBurst=3 |
|
|
|
StartLimitInterval=60s |
|
|
|
|
|
|
|
[Install] |
|
|
|
WantedBy=multi-user.target |