centos7.2安装docker

前端之家收集整理的这篇文章主要介绍了centos7.2安装docker前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_404_0@Connecting to 192.168.46.136:22...

@H_404_0@Connection established.

@H_404_0@To escape to local shell,press 'Ctrl+Alt+]'.

@H_404_0@[root@docker ~]# yum install docker

@H_404_0@已加载插件:fastestmirror,langpacks

@H_404_0@/var/run/yum.pid 已被锁定,PID 为 11876 的另一个程序正在运行。

@H_404_0@Another app is currently holding the yum lock; waiting for it to exit...

@H_404_0@ 另一个应用程序是:PackageKit

@H_404_0@ 内存:132 M RSS (1.4 GB VSZ)

@H_404_0@ 已启动: Thu May 26 22:38:29 2016 - 01:33之前

@H_404_0@ 状态 :睡眠中,进程ID:11876

@H_404_0@Another app is currently holding the yum lock; waiting for it to exit...

@H_404_0@ 另一个应用程序是:PackageKit

@H_404_0@ 内存:132 M RSS (1.4 GB VSZ)

@H_404_0@ 已启动: Thu May 26 22:38:29 2016 - 01:35之前

@H_404_0@ 状态 :睡眠中,进程ID:11876

@H_404_0@Another app is currently holding the yum lock; waiting for it to exit...

@H_404_0@ 另一个应用程序是:PackageKit

@H_404_0@ 内存:132 M RSS (1.4 GB VSZ)

@H_404_0@ 已启动: Thu May 26 22:38:29 2016 - 01:37之前

@H_404_0@ 状态 :睡眠中,进程ID:11876

@H_404_0@^Z

@H_404_0@[1]+ 已停止 yum install docker

@H_404_0@[root@docker ~]# reboot

@H_404_0@PolicyKit daemon disconnected from the bus.

@H_404_0@We are no longer a registered authentication agent.

@H_404_0@Connection closed by foreign host.

@H_404_0@Disconnected from remote host(centos7.2) at 22:42:46.

@H_404_0@Type `help' to learn how to use Xshell prompt.

@H_404_0@[c:\~]$

@H_404_0@Connecting to 192.168.46.136:22...

@H_404_0@Connection established.

@H_404_0@To escape to local shell,press 'Ctrl+Alt+]'.

@H_404_0@Last login: Thu May 26 22:39:28 2016 from 192.168.46.1

@H_404_0@[root@docker ~]# yum install docker

@H_404_0@已加载插件:fastestmirror,langpacks

@H_404_0@Loading mirror speeds from cached hostfile

@H_404_0@* base: mirrors.neusoft.edu.cn

@H_404_0@* extras: mirrors.nwsuaf.edu.cn

@H_404_0@* updates: mirrors.aliyun.com

@H_404_0@正在解决依赖关系

@H_404_0@--> 正在检查事务

@H_404_0@---> 软件包 docker.x86_64.0.1.9.1-40.el7.centos 将被 安装

@H_404_0@--> 正在处理依赖关系 docker-forward-journald = 1.9.1-40.el7.centos,它被软件包 docker-1.9.1-40.el7.centos.x86_64 需要

@H_404_0@--> 正在处理依赖关系 docker-common = 1.9.1-40.el7.centos,它被软件包 docker-1.9.1-40.el7.centos.x86_64 需要

@H_404_0@--> 正在处理依赖关系 docker-selinux >= 1.9.1-40.el7.centos,它被软件包 docker-1.9.1-40.el7.centos.x86_64 需要

@H_404_0@--> 正在检查事务

@H_404_0@---> 软件包 docker-common.x86_64.0.1.9.1-40.el7.centos 将被 安装

@H_404_0@---> 软件包 docker-forward-journald.x86_64.0.1.9.1-40.el7.centos 将被 安装

@H_404_0@---> 软件包 docker-selinux.x86_64.0.1.9.1-40.el7.centos 将被 安装

@H_404_0@--> 解决依赖关系完成

@H_404_0@依赖关系解决

@H_404_0@===================================================================================================

@H_404_0@Package 架构 版本 源 大小

@H_404_0@===================================================================================================

@H_404_0@正在安装:

@H_404_0@docker x86_64 1.9.1-40.el7.centos extras 7.8 M

@H_404_0@为依赖而安装:

@H_404_0@docker-common x86_64 1.9.1-40.el7.centos extras 55 k

@H_404_0@docker-forward-journald x86_64 1.9.1-40.el7.centos extras 827 k

@H_404_0@docker-selinux x86_64 1.9.1-40.el7.centos extras 73 k

@H_404_0@事务概要

@H_404_0@===================================================================================================

@H_404_0@安装 1 软件包 (+3 依赖软件包)

@H_404_0@总下载量:8.8 M

@H_404_0@安装大小:40 M

@H_404_0@Is this ok [y/d/N]: y

@H_404_0@Downloading packages:

@H_404_0@警告:/var/cache/yum/x86_64/7/extras/packages/docker-selinux-1.9.1-40.el7.centos.x86_64.rpm: 头V3 RSA/SHA256 Signature,密钥 ID f4a80eb5: NOKEY

@H_404_0@docker-selinux-1.9.1-40.el7.centos.x86_64.rpm 的公钥尚未安装

@H_404_0@(1/4): docker-selinux-1.9.1-40.el7.centos.x86_64.rpm | 73 kB 00:00:02

@H_404_0@(2/4): docker-common-1.9.1-40.el7.centos.x86_64.rpm | 55 kB 00:00:07

@H_404_0@docker-forward-journald-1.9.1- Failed .1 MB 00:00:16 ETA

@H_404_0@http://centosd6.centos.org/centos/7.2.1511/extras/x86_64/Packages/docker-forward-journald-1.9.1-40.el7.centos.x86_64.rpm: [Errno 12] Timeout onhttp://centosd6.centos.org/centos/7.2.1511/extras/x86_64/Packages/docker-forward-journald-1.9.1-40.el7.centos.x86_64.rpm: (28,'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')

@H_404_0@正在尝试其它镜像。

@H_404_0@(3/4): docker-1.9.1-40.el7.centos.x86_64.rpm | 7.8 MB 00:01:20

@H_404_0@(4/4): docker-forward-journald-1.9.1-40.el7.centos.x86_64.rpm | 827 kB 00:00:37

@H_404_0@---------------------------------------------------------------------------------------------------

@H_404_0@总计 85 kB/s | 8.8 MB 00:01:45

@H_404_0@从file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7检索密钥

@H_404_0@导入 GPG key 0xF4A80EB5:

@H_404_0@用户ID : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"

@H_404_0@指纹 : 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5

@H_404_0@软件包 : centos-release-7-2.1511.el7.centos.2.10.x86_64 (@anaconda)

@H_404_0@来自 : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

@H_404_0@是否继续?[y/N]:y

@H_404_0@Running transaction check

@H_404_0@Running transaction test

@H_404_0@Transaction test succeeded

@H_404_0@Running transaction

@H_404_0@ 正在安装 : docker-forward-journald-1.9.1-40.el7.centos.x86_64 1/4

@H_404_0@ 正在安装 : docker-common-1.9.1-40.el7.centos.x86_64 2/4

@H_404_0@ 正在安装 : docker-selinux-1.9.1-40.el7.centos.x86_64 3/4

@H_404_0@ 正在安装 : docker-1.9.1-40.el7.centos.x86_64 4/4

@H_404_0@ 验证中 : docker-selinux-1.9.1-40.el7.centos.x86_64 1/4

@H_404_0@ 验证中 : docker-1.9.1-40.el7.centos.x86_64 2/4

@H_404_0@ 验证中 : docker-common-1.9.1-40.el7.centos.x86_64 3/4

@H_404_0@ 验证中 : docker-forward-journald-1.9.1-40.el7.centos.x86_64 4/4

@H_404_0@已安装:

@H_404_0@ docker.x86_64 0:1.9.1-40.el7.centos

@H_404_0@作为依赖被安装:

@H_404_0@ docker-common.x86_64 0:1.9.1-40.el7.centos docker-forward-journald.x86_64 0:1.9.1-40.el7.centos

@H_404_0@ docker-selinux.x86_64 0:1.9.1-40.el7.centos

@H_404_0@完毕!

@H_404_0@[root@docker ~]# service docker start

@H_404_0@Redirecting to /bin/systemctl start docker.service

@H_404_0@[root@docker ~]#

@H_404_0@[root@docker ~]# /bin/systemctl start docker.service

@H_404_0@[root@docker ~]# systemctl enable docker.service

@H_404_0@Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.

@H_404_0@[root@docker ~]# docker pull registry.aliyuncs.com/alicloudhpc/toolkit

@H_404_0@Using default tag: latest

@H_404_0@Trying to pull repository registry.aliyuncs.com/alicloudhpc/toolkit ... latest: Pulling from alicloudhpc/toolkit

@H_404_0@fa5be2806d4c: Pulling fs layer

@H_404_0@56aecc7bde07: Pulling fs layer

@H_404_0@2717484b310b: Pulling fs layer

@H_404_0@3b6f254bc6d8: Pulling fs layer

@H_404_0@63e913a111cd: Pulling fs layer

@H_404_0@fe39423589b8: Pulling fs layer

@H_404_0@3a6bf7f950b7: Pulling fs layer

@H_404_0@68ee237eb45d: Pulling fs layer

@H_404_0@cd3c41a100d5: Pulling fs layer

@H_404_0@614ee8158ca0: Pulling fs layer

@H_404_0@88128e5458cd: Pulling fs layer

@H_404_0@df6e57140dab: Pulling fs layer

@H_404_0@516728cc842e: Pulling fs layer

@H_404_0@798e182645f3: Pulling fs layer

@H_404_0@b8b411d7d9e3: Pulling fs layer

@H_404_0@fcd633139c3a: Pulling fs layer

@H_404_0@afabb635fb5c: Pulling fs layer

@H_404_0@ce8004a18c51: Pull complete

@H_404_0@c531cca55035: Pull complete

@H_404_0@b82b1de5f375: Pull complete

@H_404_0@26cb2bdb573d: Pull complete

@H_404_0@1b56576524af: Pull complete

@H_404_0@3373f851a817: Pull complete

@H_404_0@0fc74d02af2e: Pull complete

@H_404_0@0b247de00544: Pull complete

@H_404_0@df92122c2665: Pull complete

@H_404_0@7b80fd3dc9b8: Pull complete

@H_404_0@2d586c4a132f: Pull complete

@H_404_0@f9c971e99577: Pull complete

@H_404_0@b0fb8c46c288: Pull complete

@H_404_0@Digest: sha256:db712ff9f3089d1e43f852b7079ca2774ad6944b603a2fc36da2337df3179c27

@H_404_0@Status: Downloaded newer image for registry.aliyuncs.com/alicloudhpc/toolkit:latest

@H_404_0@[root@docker ~]# docker ps

@H_404_0@CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

@H_404_0@[root@docker ~]# docker images

@H_404_0@REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE

@H_404_0@registry.aliyuncs.com/alicloudhpc/toolkit latest b0fb8c46c288 5 months ago 8.589 GB

@H_404_0@[root@docker ~]#

@H_404_0@[root@docker ~]#

@H_404_0@[root@docker ~]# docker version

@H_404_0@Client:

@H_404_0@Version: 1.9.1

@H_404_0@API version: 1.21

@H_404_0@Package version: docker-common-1.9.1-40.el7.centos.x86_64

@H_404_0@Go version: go1.4.2

@H_404_0@Git commit: ab77bde/1.9.1

@H_404_0@Built:

@H_404_0@OS/Arch: linux/amd64

@H_404_0@Server:

@H_404_0@Version: 1.9.1

@H_404_0@API version: 1.21

@H_404_0@Package version: docker-common-1.9.1-40.el7.centos.x86_64

@H_404_0@Go version: go1.4.2

@H_404_0@Git commit: ab77bde/1.9.1

@H_404_0@Built:

@H_404_0@OS/Arch: linux/amd64

@H_404_0@[root@docker ~]# docker info

@H_404_0@Containers: 0

@H_404_0@Images: 31

@H_404_0@Server Version: 1.9.1

@H_404_0@Storage Driver: devicemapper

@H_404_0@Pool Name: docker-8:3-272204955-pool

@H_404_0@Pool Blocksize: 65.54 kB

@H_404_0@Base Device Size: 107.4 GB

@H_404_0@Backing Filesystem: xfs

@H_404_0@Data file: /dev/loop0

@H_404_0@Metadata file: /dev/loop1

@H_404_0@Data Space Used: 9.321 GB

@H_404_0@Data Space Total: 107.4 GB

@H_404_0@Data Space Available: 67.52 GB

@H_404_0@Metadata Space Used: 12.1 MB

@H_404_0@Metadata Space Total: 2.147 GB

@H_404_0@Metadata Space Available: 2.135 GB

@H_404_0@Udev Sync Supported: true

@H_404_0@Deferred Removal Enabled: false

@H_404_0@Deferred Deletion Enabled: false

@H_404_0@Deferred Deleted Device Count: 0

@H_404_0@Data loop file: /var/lib/docker/devicemapper/devicemapper/data

@H_404_0@Metadata loop file: /var/lib/docker/devicemapper/devicemapper/Metadata

@H_404_0@Library Version: 1.02.107-RHEL7 (2015-10-14)

@H_404_0@Execution Driver: native-0.2

@H_404_0@Logging Driver: json-file

@H_404_0@Kernel Version: 3.10.0-327.el7.x86_64

@H_404_0@Operating System: CentOS Linux 7 (Core)

@H_404_0@cpus: 2

@H_404_0@Total Memory: 1.782 GiB

@H_404_0@Name: docker.wyh

@H_404_0@ID: DY2L:E2KP:UIHP:LKJ4:GSFV:55LQ:232R:P3QT:WCHI:A5O3:WIIU:H7AQ

@H_404_0@WARNING: bridge-nf-call-iptables is disabled

@H_404_0@WARNING: bridge-nf-call-ip6tables is disabled

@H_404_0@[root@docker ~]# docker run -i -t b0fb8c46c288 /bin/bash

@H_404_0@Usage of loopback devices is strongly discouraged for production use. Either use `--storage-opt dm.thinpooldev` or use `--storage-opt dm.no_warn_on_loop_devices=true` to suppress this warning.

@H_404_0@[root@2e5b0d33efea /]# python

@H_404_0@Python 2.7.5 (default,Jun 24 2015,00:41:19)

@H_404_0@[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2

@H_404_0@Type "help","copyright","credits" or "license" for more information.

@H_404_0@>>> exit()

@H_404_0@[root@2e5b0d33efea /]# java -version

@H_404_0@java version "1.7.0_85"

@H_404_0@OpenJDK Runtime Environment (rhel-2.6.1.2.el7_1-x86_64 u85-b01)

@H_404_0@OpenJDK 64-Bit Server VM (build 24.85-b03,mixed mode)

@H_404_0@[root@2e5b0d33efea /]# cd /etc

@H_404_0@[root@2e5b0d33efea etc]# ls

@H_404_0@adjtime.rpmsave default hosts maven rc1.d ssl

@H_404_0@aliases depmod.d hosts.allow modprobe.d rc2.d subversion

@H_404_0@alternatives DIR_COLORS hosts.deny modules-load.d rc3.d sysconfig

@H_404_0@anacrontab DIR_COLORS.256color ImageMagick motd rc4.d sysctl.d

@H_404_0@ant.conf DIR_COLORS.lightbgcolor init.d mtab rc5.d systemd

@H_404_0@ant.d environment inputrc nsswitch.conf rc6.d system-release

@H_404_0@asound.conf exports iproute2 OpenCL rc.d system-release-cpe

@H_404_0@bash_completion.d filesystems issue openldap rc.local tcsd.conf

@H_404_0@bashrc fonts issue.net opt redhat-release terminfo

@H_404_0@binfmt.d fstab java os-release resolv.conf tmpfiles.d

@H_404_0@BUILDTIME gconf jvm pam.d rpc Trolltech.conf

@H_404_0@centos-release gcrypt jvm-commmon passwd rpm udev

@H_404_0@centos-release-upstream gdbinit kde passwd- rsyncd.conf vconsole.conf

@H_404_0@chkconfig.d gdbinit.d krb5.conf pkcs11 rsyslog.d vimrc

@H_404_0@cron.d ghostscript ld.so.cache pki sasl2 virc

@H_404_0@cron.daily gnupg ld.so.conf pm securetty wgetrc

@H_404_0@cron.deny GREP_COLORS ld.so.conf.d polkit-1 security X11

@H_404_0@cron.hourly groff libaudit.conf popt.d selinux xdg

@H_404_0@cron.monthly group libuser.conf prelink.conf.d services xinetd.d

@H_404_0@crontab group- locale.conf printcap sgml xml

@H_404_0@cron.weekly gshadow localtime profile shadow yum

@H_404_0@crypttab gshadow- login.defs profile.d shadow- yum.conf

@H_404_0@csh.cshrc gss logrotate.d protocols shells yum.repos.d

@H_404_0@csh.login host.conf m2.conf pulse skel

@H_404_0@dbus-1 hostname magic rc0.d ssh

@H_404_0@[root@2e5b0d33efea etc]# exit

@H_404_0@exit

@H_404_0@[root@docker ~]#

原文链接:https://www.f2er.com/centos/381339.html

猜你在找的CentOS相关文章