ubuntu安装docker(包安装)

ubuntu安装docker-包模式


docker for ubuntu

Ubuntu安装docker

# docker包下载位置:(链接来自docker官网)

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

ubuntu安装docker(包安装)_第1张图片
1556320360568

获取deb安装包

# 获取docker依赖包

wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/amd64/containerd.io_1.2.5-1_amd64.deb

# 获取docker客户端 (docker包名: docker-ce-cli)
# cli是client的缩写,客户端

wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/amd64/docker-ce-cli_18.09.5~3-0~ubuntu-bionic_amd64.deb

# 获取docker主控端 (docker包名:docker-ce)

wget https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/amd64/docker-ce_18.09.5~3-0~ubuntu-bionic_amd64.deb

获取完成之后,按照顺序进行安装

# 优先安装docker依赖包 
dpkg -i containerd.io_1.2.5-1_amd64.deb

# 安装docker客户端 (docker-ce-cli)
dpkg -i docker-ce-cli_18.09.5~3-0~ubuntu-bionic_amd64.deb

# 安装docker主控端
dpkg -i docker-ce_18.09.5~3-0~ubuntu-bionic_amd64.deb



安装完成之后,将docker.service重启

service docker restart

最后,使用docker pull 拉取一个镜像来做安装成功与否

docker pull daocloud.io/ubuntu

你可能感兴趣的:(linux运维,docker,运维之心)