docker--(2)docker安裝與經常使用命令

我是基於這篇文章安裝的
http://blog.csdn.net/yown/article/details/51525035
在centos7上安裝docker。步驟以下
#1.安裝dockerlinux

[root@localhost ~]# yum install docker

接着會出現一大推的安裝信息,直到報錯docker

Transaction check error:
  file /usr/lib/systemd/system/blk-availability.service from install of device-mapper-7:1.02.107-5.el7_2.5.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
  file /usr/sbin/blkdeactivate from install of device-mapper-7:1.02.107-5.el7_2.5.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
  file /usr/share/man/man8/blkdeactivate.8.gz from install of device-mapper-7:1.02.107-5.el7_2.5.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64

接着輸入以下命令centos

[root@localhost ~]# yum install libdevmapper* -y

會出現一大推安裝信息,直到"完畢"出現。
接着再次安裝dockerapp

[root@localhost ~]# yum install docker

直到"完畢"出現。
#2.檢查docker安裝正確ui

這裏輸入代碼

#3.查看docker版本信息this

[root@localhost ~]# docker version
Client:
 Version:         1.10.3
 API version:     1.22
 Package version: docker-common-1.10.3-46.el7.centos.14.x86_64
 Go version:      go1.6.3
 Git commit:      cb079f6-unsupported
 Built:           Fri Sep 16 13:24:25 2016
 OS/Arch:         linux/amd64
Cannot connect to the Docker daemon. Is the docker daemon running on this host?

#4.使用docker
4.1啓動/暫停dockercentos7

[root@localhost /]# service docker start
Redirecting to /bin/systemctl start  docker.service

4.2.net

相關文章
相關標籤/搜索