Skip to content

Commit

Permalink
Support docker 18.09 in the test script.
Browse files Browse the repository at this point in the history
Signed-off-by: Lantao Liu <lantaol@google.com>
  • Loading branch information
Random-Liu authored and dmcgowan committed Aug 11, 2020
1 parent 1467121 commit ce12477
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrib/gce/cloud-init/master.yaml
Expand Up @@ -174,6 +174,8 @@ write_files:
WantedBy=multi-user.target
runcmd:
# Stop the existing containerd service if there is one. (for Docker 18.09+)
- systemctl is-active containerd && systemctl stop containerd
- systemctl daemon-reload
- systemctl enable containerd-installation.service
- systemctl enable containerd.service
Expand All @@ -186,3 +188,5 @@ runcmd:
- systemctl enable kube-logrotate.service
- systemctl enable kubernetes.target
- systemctl start kubernetes.target
# Start docker after containerd is running. (for Docker 18.09+)
- systemctl is-enabled docker && (systemctl is-active docker || systemctl start docker)
4 changes: 4 additions & 0 deletions contrib/gce/cloud-init/node.yaml
Expand Up @@ -174,6 +174,8 @@ write_files:
WantedBy=multi-user.target
runcmd:
# Stop the existing containerd service if there is one. (for Docker 18.09+)
- systemctl is-active containerd && systemctl stop containerd
- systemctl daemon-reload
- systemctl enable containerd-installation.service
- systemctl enable containerd.service
Expand All @@ -186,3 +188,5 @@ runcmd:
- systemctl enable kube-logrotate.service
- systemctl enable kubernetes.target
- systemctl start kubernetes.target
# Start docker after containerd is running. (for Docker 18.09+)
- systemctl is-enabled docker && (systemctl is-active docker || systemctl start docker)

0 comments on commit ce12477

Please sign in to comment.