下载ubuntu的docker安装包

离线安装docker需要下载3个包,containerd.io ,docker-ce-cli,docker-ce
containerd.io_xxx_amd64.deb
docker-ce_xxx_ubuntu-xenial_amd64.deb
docker-ce-cli_xxx_ubuntu-xenial_amd64.deb


先安装 containerd.io 跟 docker-ce-cli,最后安装docker-ce,
命令:sudo dpkg -i xx.deb
dpkg -i containerd.io_xxx_amd64.deb
dpkg -i docker-ce-cli_xxx_ubuntu-xenial_amd64.deb
dpkg -i docker-ce_xxx_ubuntu-xenial_amd64.deb

启动

systemctl start docker 
systemctl enable docker
systemctl status docker 
docker version
安装docker-compose



https://blog.csdn.net/qq_38066812/article/details/127673911