ubuntu 18.04 docker的安装和使用

离线方式在Ubuntu 18.04 上安装Docker

操作系统需求:Ubuntu 18.04

Docker deb 包下载地址:

https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/amd64/

下载三个文件:

containerd.io_1.2.6-3_amd64.deb

docker-ce-cli_19.03.5~3-0~ubuntu-bionic_amd64.deb

docker-ce_19.03.5~3-0~ubuntu-bionic_amd64.deb

然后执行:sudo dpkg -i /deb/文件目录/*.deb 进行安装

 

我是下载这三个文件:
containerd.io_1.6.9-1_amd64.deb

docker-ce_24.0.2-1~ubuntu.18.04~bionic_amd64.deb

docker-ce-cli_24.0.2-1~ubuntu.18.04~bionic_amd64.deb

 

 

3. Test your Docker CE installation

Test your installation:

sudo docker run hello-world

 

  • # 检查运行

  ps axf | grep docker

  13845 ? Ssl 0:00 /usr/bin/docker -d

  sudo docker version

 

启动和停止docker服务

  • sudo service docker start
  • sudo service docker stop
  • sudo service docker restart
posted @ 2017-03-19 23:02  bonelee  阅读(1473)  评论(0编辑  收藏  举报