公网环境一键安装docker

使用官方安装脚本自动安装 (仅适用于公网环境)

curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

docker compose
https://github.com/docker/compose/tags 获取最新tag

curl -L "https://github.com/docker/compose/releases/download/v2.4.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

wget "https://github.com/docker/compose/releases/download/v2.4.1/docker-compose-$(uname -s)-$(uname -m)" -O /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

镜像加速

https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors

posted @ 2021-10-03 11:06  spacelit  阅读(71)  评论(0编辑  收藏  举报