diff --git a/scripts/start-k3s.sh b/scripts/start-k3s.sh index 4b708028..2f1227ab 100755 --- a/scripts/start-k3s.sh +++ b/scripts/start-k3s.sh @@ -16,8 +16,8 @@ echo "--> Starting k3s in docker-compose" docker-compose up -d --build echo "--> Allow insecure access to registry" -docker exec k3s_node_1 /bin/sh -c 'mkdir -p /etc/rancher/k3s' -docker cp "${DIR}/registries.yaml" k3s_node_1:/etc/rancher/k3s/registries.yaml +docker exec k3s-node-1 /bin/sh -c 'mkdir -p /etc/rancher/k3s' +docker cp "${DIR}/registries.yaml" k3s-node-1:/etc/rancher/k3s/registries.yaml echo "--> Wait for k3s kubeconfig file to exist" while [ ! -s "${KUBECONFIG}" ] || [ ! -f "${KUBECONFIG}" ]; do sleep 1; done