Merge "Disable and stop docker when the CRI is containerd"

This commit is contained in:
Zuul 2021-11-26 10:48:02 +00:00 committed by Gerrit Code Review
commit 7b1dfaa189
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,8 @@ set -x
ssh_cmd="ssh -F /srv/magnum/.ssh/config root@localhost"
if [ "${CONTAINER_RUNTIME}" = "containerd" ] ; then
$ssh_cmd systemctl disable docker
$ssh_cmd systemctl disable docker.service docker.socket
$ssh_cmd systemctl stop docker.service docker.socket
if [ -z "${CONTAINERD_TARBALL_URL}" ] ; then
CONTAINERD_TARBALL_URL="https://github.com/containerd/containerd/releases/download/v${CONTAINERD_VERSION}/cri-containerd-cni-${CONTAINERD_VERSION}-linux-amd64.tar.gz"
fi