docker centos 6


[root@localhost Desktop]# yum install http://mirror.neu.edu.cn/fedora-epel/6Server/x86_64/docker-io-1.7.1-2.el6.x86_64.rpm
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
docker-io-1.7.1-2.el6.x86_64.rpm                         | 4.6 MB     00:01   
Examining /var/tmp/yum-root-w1RMP6/docker-io-1.7.1-2.el6.x86_64.rpm: docker-io-1.7.1-2.el6.x86_64
Marking /var/tmp/yum-root-w1RMP6/docker-io-1.7.1-2.el6.x86_64.rpm to be installed
Loading mirror speeds from cached hostfile
 * base: mirrors.praction.in
 * epel: ftp.riken.jp
 * extras: mirrors.praction.in
 * updates: mirrors.praction.in
Resolving Dependencies
--> Running transaction check
---> Package docker-io.x86_64 0:1.7.1-2.el6 will be installed
--> Processing Dependency: libcgroup for package: docker-io-1.7.1-2.el6.x86_64
--> Processing Dependency: lxc for package: docker-io-1.7.1-2.el6.x86_64
--> Running transaction check
---> Package libcgroup.x86_64 0:0.40.rc1-27.el6_10 will be installed
---> Package lxc.x86_64 0:1.0.11-1.el6 will be installed
--> Processing Dependency: lua-lxc(x86-64) = 1.0.11-1.el6 for package: lxc-1.0.11-1.el6.x86_64
--> Processing Dependency: lua-alt-getopt for package: lxc-1.0.11-1.el6.x86_64
--> Processing Dependency: liblxc.so.1()(64bit) for package: lxc-1.0.11-1.el6.x86_64
--> Running transaction check
---> Package lua-alt-getopt.noarch 0:0.7.0-1.el6 will be installed
---> Package lua-lxc.x86_64 0:1.0.11-1.el6 will be installed
--> Processing Dependency: lua-filesystem for package: lua-lxc-1.0.11-1.el6.x86_64
---> Package lxc-libs.x86_64 0:1.0.11-1.el6 will be installed
--> Running transaction check
---> Package lua-filesystem.x86_64 0:1.4.2-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package        Arch   Version              Repository                     Size
================================================================================
Installing:
 docker-io      x86_64 1.7.1-2.el6          /docker-io-1.7.1-2.el6.x86_64  19 M
Installing for dependencies:
 libcgroup      x86_64 0.40.rc1-27.el6_10   updates                       131 k
 lua-alt-getopt noarch 0.7.0-1.el6          epel                          6.9 k
 lua-filesystem x86_64 1.4.2-1.el6          epel                           24 k
 lua-lxc        x86_64 1.0.11-1.el6         epel                           16 k
 lxc            x86_64 1.0.11-1.el6         epel                          124 k
 lxc-libs       x86_64 1.0.11-1.el6         epel                          257 k

Transaction Summary
================================================================================
Install       7 Package(s)

Total size: 20 M
Installed size: 20 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : lxc-libs-1.0.11-1.el6.x86_64                                 1/7
  Installing : lua-filesystem-1.4.2-1.el6.x86_64                            2/7
  Installing : lua-lxc-1.0.11-1.el6.x86_64                                  3/7
  Installing : lua-alt-getopt-0.7.0-1.el6.noarch                            4/7
  Installing : lxc-1.0.11-1.el6.x86_64                                      5/7
  Installing : libcgroup-0.40.rc1-27.el6_10.x86_64                          6/7
  Installing : docker-io-1.7.1-2.el6.x86_64                                 7/7
  Verifying  : lxc-1.0.11-1.el6.x86_64                                      1/7
  Verifying  : lua-lxc-1.0.11-1.el6.x86_64                                  2/7
  Verifying  : libcgroup-0.40.rc1-27.el6_10.x86_64                          3/7
  Verifying  : lxc-libs-1.0.11-1.el6.x86_64                                 4/7
  Verifying  : docker-io-1.7.1-2.el6.x86_64                                 5/7
  Verifying  : lua-alt-getopt-0.7.0-1.el6.noarch                            6/7
  Verifying  : lua-filesystem-1.4.2-1.el6.x86_64                            7/7

Installed:
  docker-io.x86_64 0:1.7.1-2.el6                                               

Dependency Installed:
  libcgroup.x86_64 0:0.40.rc1-27.el6_10   lua-alt-getopt.noarch 0:0.7.0-1.el6 
  lua-filesystem.x86_64 0:1.4.2-1.el6     lua-lxc.x86_64 0:1.0.11-1.el6       
  lxc.x86_64 0:1.0.11-1.el6               lxc-libs.x86_64 0:1.0.11-1.el6     

Complete!
[root@localhost Desktop]# service docker status
docker is stopped
[root@localhost Desktop]# service docker start
Starting cgconfig service:                                 [  OK  ]
Starting docker:                                    [  OK  ]
[root@localhost Desktop]# chkconfig docker on

[root@localhost Desktop]#  sudo docker run -d --privileged  --net=host -v /etc/kubernetes:/etc/kubernetes -v /var/run:/var/run rancher/rancher-agent:v2.3.1 --server https://192.168.0.104 --token lzlbsg75dqx4qdfnwbxqwzndlgbhxc89j4q27pxvtzfnnv4rntf7pm --ca-checksum b689a90076db7b0b6a1778d041d923e7cd3a86eb534fa91501a09d9aa1dfb3be --etcd --controlplane --worker
Unable to find image 'rancher/rancher-agent:v2.3.1' locally
v2.3.1: Pulling from rancher/rancher-agent
53e1edbd56e0: Pulling fs layer
86feef564c75: Pulling fs layer
66c93443725d: Pulling fs layer
4b728884276a: Pull complete
a6ff24ae1bf3: Pull complete
77f822a1d507: Pull complete
2fd667f67897: Pull complete
c6c20d7ed1c7: Pull complete
e6efd1138e02: Pull complete
8b87c808628a: Pull complete
6d2ca571855a: Pull complete
83bd83f9ef63: Pull complete
ec9c54d384cd: Pull complete
0482c73ae41c: Pull complete
2812ed55f343: Pull complete
9a4902eb166e: Pull complete
21cb9105e5be: Pull complete
98a712e93145: Pull complete
227db261a59c: Pull complete
ab324a0cddbc: Pull complete
10fadd45fd14: Pull complete
9273a7b9adc7: Pull complete
e4dc777044ef: Pull complete
fd2c0b6a7246: Pull complete
f00c36e3a5be: Pull complete
7441752d3c18: Pull complete
Digest: sha256:2853f533005e191a6fe0ac0ee3aef528b921884826797733ac19b1136a83f411
Status: Downloaded newer image for rancher/rancher-agent:v2.3.1
8b9ca5fd2142cbbb41c114405ca58ce835007cc2201480625e5d466e5825ae68
[root@localhost Desktop]#

Comments