BlueXIII's Blog

热爱技术,持续学习

0%

Docker离线部署

Docker二进制方式离线

1
2
3
4
wget https://download.docker.com/linux/static/stable/x86_64/docker-23.0.4.tgz
tar -zxvf docker-23.0.4.tgz
cp docker/* /usr/bin/
dockerd &

DockerUbuntu下在线安装

1
2
3
4
5
sudo apt install -y docker.io
sudo gpasswd -a $USER docker
newgrp docker
docker version
docker info

DockerCompose离线安装

1
2
3
4
# 下载
wget https://github.com/docker/compose/releases/download/v2.17.3/docker-compose-linux-x86_64
sudo cp docker-compose-linux-x86_64 /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose