#离线安装docker记录/n 系统:ubuntu18.04
- docker软件包:
docker-compose.tar.gz,containerd.io\_1.2.4-1\_amd64.deb
docker-ce-cli\_18.09.3\_3-0\_ubuntu-bionic\_amd64.deb
docker-ce\_18.09.3\_3-0\_ubuntu-bionic\_amd64.deb
一.安装Docker CE
离线安装docker:
1.将containerd.io_1.2.4-1_amd64.deb,docker-ce-cli_18.09.3_3-0_ubuntu-bionic_amd64.deb,docker-ce_18.09.3_3-0_ubuntu-bionic_amd64.deb三个导入本地服务器,或者从https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/amd64/下载
2.安装container.io
$ sudo apkg -i containerd.io\_1.2.4-1\_amd64.deb
3.安装docker-ce-cli
$ sudo apkg -i docker-ce-cli\_18.09.3\_3-0\_ubuntu-bionic\_amd64.deb
4.安装docker-ce
$ sudo apkg -i docker-ce\_18.09.3\_3-0\_ubuntu-bionic\_amd64.deb
5.检查是否安装成功
$ sudo docker -v #仅仅是查看docker-ce-cli客户端软件包是否安装成功
$ sudo docker images #查看本地镜像,如果报错就是安装不成功
$ sudo docker run hello-world #在联网情况下检测是否安装成功
╰(*°▽°*)╯ (dadaguo-dadaguo)