Last active
July 4, 2024 08:35
-
-
Save schakko/daf934e79f8224d236680ee84d7ea17c to your computer and use it in GitHub Desktop.
Use this as "Docker Install URL" in a Rancher Node Template so that Docker and ecr-credentials-provider is installed on node
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DOCKER_VERSION="20.10.sh" | |
install_ecr_credentials_provider() { | |
echo "Installing ecr-credentials-provider ..." | |
curl -OL https://gist.githubusercontent.com/schakko/d53deb3e75309ea5577693a21cb3cbc3/raw/a20195bc369968c725a7df0ad0449534de9aae73/install_ecr_credentials_provider.sh | |
chmod +x install_ecr_credentials_provider.sh | |
sudo ./install_ecr_credentials_provider.sh | |
echo "" | |
} | |
install_docker() { | |
echo "Installing rancher-docker ${DOCKER_VERSION}" | |
curl -OL https://releases.rancher.com/install-docker/${DOCKER_VERSION} | |
chmod +x ${DOCKER_VERSION} | |
./${DOCKER_VERSION} | |
echo "" | |
} | |
install_ecr_credentials_provider | |
install_docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment