服务器购买推荐:
点击直达 腾讯云服务器
点击直达 海外服务器
点击直达 阿里云服务器
Docker安装
更新、安装必备软件
apt-get update && apt-get install -y wget vim
非大陆Docker安装
wget -qO- get.docker.com | bash
查看Docker版本
docker -v
开机自动启动
systemctl enable docker
卸载Docker
sudo apt-get purge docker-ce docker-ce-cli containerd.io
sudo rm -rf /var/lib/docker
sudo rm -rf /var/lib/containerd
非大陆Docker-compose安装
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
国内机安装docker
curl -sSL https://get.daocloud.io/docker | sh
开机自启docker
systemctl enable docker
国内机安装docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/v2.5.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
卸载docker
sudo apt-get remove docker docker-engine
rm -fr /var/lib/docker/
ARM 甲骨文安装 docker compose
官方多平台安装命令(最新的2.6.0版本)
curl -L https://github.com/docker/compose/releases/download/v2.5.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
国内环境镜像
curl -L https://ghproxy.com/https://github.com/docker/compose/releases/download/v2.5.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
评论区