Last active
February 21, 2023 13:25
-
-
Save hydrz/3cf0f25c020d5e42d44e091df8b23e40 to your computer and use it in GitHub Desktop.
docker-install.sh
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
#!/usr/bin/sh | |
# config docker | |
mkdir -p /etc/docker | |
cat <<EOF >/etc/docker/daemon.json | |
{ | |
"registry-mirrors": [ | |
"https://2y38832m.mirror.aliyuncs.com" | |
] | |
} | |
EOF | |
# install docker | |
curl -fsSL https://get.docker.com | bash -s docker --mirror AzureChinaCloud |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment