9090 echo "::endgroup::"
9191 shell : bash
9292
93- # NOTE: The sed substitution operation is to run cri-dockerd in a way that
94- # makes it work with calico as a CNI. This was based on
95- # https://github.com/Mirantis/cri-dockerd/issues/42.
96- #
97- - name : Setup cri-dockerd as a dockershim
98- if : inputs.docker-enabled == 'true'
99- env :
100- # https://github.com/Mirantis/cri-dockerd/tags
101- CRI_DOCKERD_VERSION : " 0.3.9"
102- run : |
103- echo "::group::Setup cri-dockerd as a dockershim"
104- cd /tmp
105-
106- wget -qO- https://github.com/Mirantis/cri-dockerd/releases/download/v${CRI_DOCKERD_VERSION}/cri-dockerd-${CRI_DOCKERD_VERSION}.amd64.tgz | tar -xvz --strip-components=1
107- sudo mv cri-dockerd /usr/bin/
108-
109- wget -q https://raw.githubusercontent.com/Mirantis/cri-dockerd/v${CRI_DOCKERD_VERSION}/packaging/systemd/cri-docker.service
110- wget -q https://raw.githubusercontent.com/Mirantis/cri-dockerd/v${CRI_DOCKERD_VERSION}/packaging/systemd/cri-docker.socket
111- sudo mv cri-docker.{service,socket} /etc/systemd/system/
112-
113- sudo systemctl daemon-reload
114- sudo systemctl enable cri-docker.service
115- sudo systemctl enable --now cri-docker.socket
116-
117- cri-dockerd --buildinfo
118- echo "::endgroup::"
119- shell : bash
120-
12193 # NOTE: We apply a workaround as of version 3.0.1 by passing
12294 # --egress-selector-mode=disabled by default as not doing so following
12395 # modern versions of k3s has led to issues with `kubectl exec` and
@@ -137,7 +109,7 @@ runs:
137109 k3s_disable_traefik="--disable traefik"
138110 fi
139111 if [[ "${{ inputs.docker-enabled }}" == true ]]; then
140- k3s_docker=--container-runtime-endpoint=/run/cri-dockerd.sock
112+ k3s_docker=--docker
141113 fi
142114 # We want to provide a new default value for the --egress-selector-mode
143115 # flag to avoid an intermittent issue possibly not fully resolved:
0 commit comments