docker fancy installation

docker fancy installation

The first is to use the basic requirements before docker

Now we start the installation docker

Method One: official download and install docker from (this method is more complicated, not recommended)
docker fancy installation
Download engine
docker fancy installation
selected our centos (given your choice of operating systems)
docker fancy installation
Installation Guide Click
docker fancy installation
docker fancy installation
docker fancy installation
docker fancy installation
handwriting yum source (bloggers have written)
vim /etc/yum.repos.d/docker.repo
[Docker]
name = Docker
BaseURL = https://download.docker.com/linux/centos/7/x86_64/stable/Packages/
gpgcheck = 0
Enabled =. 1
: WQ (save and exit)
docker fancy installation
to perform cache command yum repolist (will find our docker repository nothing)
docker fancy installation
we will yum source inside the parameters modification (delete / Packages /)
docker fancy installation
to re-execute the cache command yum repolist (will find our docker warehouse has cache)
docker fancy installation
we install the latest version of the docker test (test)
// the default download the latest version. (But the download is slow, we can also use another way to install docker) (working abroad friends can try this method)
docker fancy installation

方法二:在我们国内的阿里云上下载docker-ce 网址:阿里镜像站
docker fancy installation
将选中的命令复制并运行
docker fancy installation
安装完之后查看yum源 ls /etc/yum.repos.d/
docker fancy installation
确认仓库有docker-ce
docker fancy installation
将docker-ce做缓存 yum makecache
docker fancy installation
查看一下docker可用的版本 yum list docker-ce.x86_64 --showduplicates | sort -r
docker fancy installation
//这里我们下载18.9.0,注意并没有采用阿里云官方推荐的方法,我们分别下载docker-ce,docker-ce-cli和containerd.io这三个组件
yum -y install docker-ce-18.09.0-3.el7 docker-ce-cli-18.09.0-3.el7 containerd.io-1.2.0-el7
docker fancy installation
开启docker服务,将他加入开机自启
systemctl start docker
systemctl enable docker
查看docker版本
Docker -v (只查看client版本)
docker version (查看docker的详细信息)
docker fancy installation
虚拟机如果是最小化安装的,安装tab自动补全功能插件(方便tab)
yum -y install bash-completion
我们下载一个centos7镜像
docker pull centos:7 (会发现下载的太慢)
It does not matter that we can use the accelerator URL docker nominal: Road passenger cloud
acceleration docker download
using a docker image accelerator used here is daocloud accelerator, of course, there are other accelerators, such as Ali cloud, Tsinghua mirroring station
curl -ssl HTTPS: //get.daocloud.io/daotools/set_mirror.sh | SH -s http://f1361db2.m.daocloud.io
use a daemon:
systemctl-daemon reload
after the restart docker
systemctl restart docker
View docker information (will find the road off cloud accelerator)
Docker info
docker fancy installation
download again centos7 mirror (find quick batch)
well, here we are docker installation method has been finished, bloggers have something wrong or comments that may be, bloggers shy of

Guess you like

Origin blog.51cto.com/14661501/2465316