Skip to content

Commit

Permalink
use --pull=always
Browse files Browse the repository at this point in the history
Docker version 19.09 added some new pull logic[1] to the run command that could be used here
[1]: docker/cli#1498
  • Loading branch information
greyltc authored Mar 19, 2021
1 parent 35501d7 commit 333c4fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion valheim.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ ConditionPathExists=/etc/sysconfig/valheim-server
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker stop %n
ExecStartPre=-/usr/bin/docker rm %n
ExecStartPre=/usr/bin/docker pull lloesche/valheim-server
ExecStart=/usr/bin/docker run \
--name %n \
--pull=always \
--rm \
--cap-add=sys_nice \
--stop-timeout 120 \
Expand Down

0 comments on commit 333c4fb

Please sign in to comment.