Skip to content

Instantly share code, notes, and snippets.

@hydrz
Last active February 21, 2023 13:25
Show Gist options
  • Save hydrz/3cf0f25c020d5e42d44e091df8b23e40 to your computer and use it in GitHub Desktop.
Save hydrz/3cf0f25c020d5e42d44e091df8b23e40 to your computer and use it in GitHub Desktop.
docker-install.sh
#!/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