Skip to content

Commit

Permalink
Merge pull request #1083 from Random-Liu/support-docker-18-09
Browse files Browse the repository at this point in the history
Support docker 18.09 in the test script.
  • Loading branch information
Random-Liu committed Mar 11, 2019
2 parents 25442a8 + ade85e6 commit d582333
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cluster/gce/cloud-init/master.yaml
Original file line number Diff line number Diff line change
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 cluster/gce/cloud-init/node.yaml
Original file line number Diff line number Diff line change
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 test/e2e_node/init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,12 @@ 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
- systemctl enable containerd.target
- systemctl start containerd.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 d582333

Please sign in to comment.