将设为首页浏览此站
开启辅助访问 天气与日历 收藏本站联系我们切换到窄版

易陆发现论坛

 找回密码
 开始注册
查看: 3510|回复: 6
收起左侧

CentOS 7 安装docker环境

[复制链接]
发表于 2018-6-21 13:10:57 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?开始注册

x
Centos7安装docker
3 Q, C' |: Y: V2 g  G; o( A     各个操作系统的安装可以访问:& M* c" o" c, e. a' h9 e. W/ k# w
     [url=https://docs.docker.com/engine/installation]https://docs.docker.com/engine/installation[/url]
" B" F& U/ c6 C! C- g; E$ O9 Vdocker分为开源的免费的CE版本和收费的EE版本:& Z" i. B  Q5 v3 q% w
以下实验环境,采用在centos7.2操作系统上安装,使用docker版本为Docker CE版本:
' ]8 \5 T8 e/ L/ j, C3 j配置docker的yum源
( w' H5 g6 P+ k- Hyum remove docker \3 E, K* l+ g5 g9 V( m( u/ s9 z
                  docker-client \9 L+ ^% s& Z( J! a( G
                  docker-client-latest \# R4 B0 x# e# }! j* m
                  docker-common \
& l1 Q0 g# i( a# J                  docker-latest \: K" @1 y7 O) @1 v/ D8 H" Z5 N1 Y% ~
                  docker-latest-logrotate \
) @3 C9 T* l9 Y( Q' ]                  docker-logrotate \
0 G1 k' k9 ]; m5 v$ e                  docker-selinux \
5 E; V6 v$ l* D/ U6 H. a3 C  e                  docker-engine-selinux \
$ ~; L& X# ]  l2 L" }! A+ p                  docker-engine
& A5 O+ k: e- I, U' _7 _
7 x( ~* k$ x' ?* }: ]; l# C' k* w; Z8 \$ L+ ~( p& |
yum-config-manager --enable docker-ce-edge   测试验证yum源状态和信息
4 s5 n8 Z& w3 t; I" L! `% zyum-config-manager --enable docker-ce-edge: T, V9 B" y$ }/ ^$ a
Loaded plugins: fastestmirror& m) O' y$ J2 q( }2 \8 f, h
================================================================================ repo: docker-ce-edge ================================================================================% ~( c! w% |1 A0 K8 O1 N' g
[docker-ce-edge], F. |7 d: |# w0 q5 J) ^7 [
async = True
6 w9 x4 \! V( b6 L  O bandwidth = 0
! X6 Y& ^; T4 r+ S9 S$ r$ a base_persistdir = /var/lib/yum/repos/x86_64/7: v" K& w. \1 u0 c
baseurl = [url=https://download.docker.com/linux/centos/7/x86_64/edge][color=#0066cc]https://download.docker.com/linux/centos/7/x86_64/edge[/color][/url]2 p' L$ `0 I! S/ Q. o
cache = 0
0 L+ g% T2 o" w1 }! \9 Y cachedir = /var/cache/yum/x86_64/7/docker-ce-edge0 k2 |8 k' I+ b- A9 Y, K
check_config_file_age = True8 T9 p5 c1 `3 V& f. G( n
compare_providers_priority = 808 j( q# Y0 r! B; E
cost = 1000
  }; I9 u7 y; B+ w+ Y5 `  R deltarpm_metadata_percentage = 100/ D6 s. V" @6 Y/ N0 k
deltarpm_percentage =
1 q. Q( B5 U$ i, d- R: s enabled = 1
) V. W4 V- k$ ^/ I0 Q enablegroups = True  A. s5 P& v) j. x1 y
exclude =
7 w/ V+ ?! S! R4 p9 z failovermethod = priority
8 u2 g  j5 X" T, o+ a7 t3 U ftp_disable_epsv = False
8 d8 _/ C3 X' {( Y/ e( y  r! V5 T( ~1 R gpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgcadir8 ~4 v7 J4 M+ R  j4 p' U3 D
gpgcakey =
% d) ^% R2 L1 z3 z& w gpgcheck = True: ^- r9 d5 M4 T  c7 y1 w6 d9 D+ p' G
gpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgdir
# K* v* l% J; b& j1 |6 S+ D gpgkey = [url=https://download.docker.com/linux/centos/gpg][color=#0066cc]https://download.docker.com/linux/centos/gpg[/color][/url]' s% Y  S, \# b8 F6 d5 Z
hdrdir = /var/cache/yum/x86_64/7/docker-ce-edge/headers
" I- b5 Q( j* i5 g3 O3 d) m/ ] http_caching = all: \) P" j6 N+ B- {# }8 @' U- r
includepkgs = ! p$ e2 {3 ~+ c2 P) j8 c4 u+ n% u
ip_resolve =
% H6 [# j0 g3 O keepalive = True
+ R* H7 x( |' {' ~$ d! B0 s8 L" [* K keepcache = False7 e" W8 k& p6 {8 `0 _# ]( i
mddownloadpolicy = sqlite, ~9 B# ]- Z$ H/ E- _/ P
mdpolicy = group:small
* g" Z( H4 q4 y mediaid =
* r# [, ^/ X3 o metadata_expire = 21600
5 b6 x! z5 S' ~; p0 r+ U8 d metadata_expire_filter = read-only:present/ A2 D0 Y" H7 k- l7 \2 I, B
metalink =
2 t( S, k; D/ m% k+ X$ Q+ Y minrate = 0$ ?1 a6 p% a; M& n7 @  Q
mirrorlist = ; e: D3 C5 _( }
mirrorlist_expire = 86400
) J$ X' z6 r! w2 p5 l& a. W name = Docker CE Edge - x86_645 w' D0 u+ D0 ~/ H: }
old_base_cache_dir =
! H2 m* J# ~. x# } password =
: J/ j. T" g: K% s7 { persistdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge
6 U2 R9 O0 G- w& ?% }5 P pkgdir = /var/cache/yum/x86_64/7/docker-ce-edge/packages
+ U: O; j5 ^; W) t$ Z# H proxy = False( G5 e8 Q: H, v5 i) o
proxy_dict = 3 j' S4 Y, ]7 {  _. u) _5 i/ k
proxy_password =
, q4 G- W0 C+ ~- @$ \5 j proxy_username = 5 ]9 W" Q4 m( E$ N7 ]& F
repo_gpgcheck = False
/ c; E1 t% l; h1 M" R retries = 10
8 n* K8 Q* R) B! c5 N skip_if_unavailable = False% N- p( Q# E% x) B0 C) `: h
ssl_check_cert_permissions = True' K" i6 `# w+ V' U
sslcacert =
8 H1 a' y+ A" g/ g: a9 { sslclientcert = 9 W, R$ U4 ]0 i; V2 o* H2 h4 _
sslclientkey =
/ ~3 i8 Q1 L7 V sslverify = True6 Z( f- p4 u) a+ o  m. Y* ]
throttle = 0: v- o  x: U/ @4 F
timeout = 30.0& M, z# ~' e! ^5 E, i9 f+ @
ui_id = docker-ce-edge/x86_644 x+ q* S- B& m" r
ui_repoid_vars = releasever,7 r3 c) J3 ^& D; h
    basearch
8 n( V0 W# j! k0 t* Y6 d- @ username =
* |: I( o1 A. y, h' H% u
: ?+ \$ R/ _2 ^- p8 |6 c0 I # yum-config-manager --enable docker-ce-test
$ p* p' ^- B2 Q* Y Loaded plugins: fastestmirror8 L0 u3 d  ~) ^, e& k
================================================================================ repo: docker-ce-test ================================================================================' X3 k) c8 b9 B% L' a$ d9 D
[docker-ce-test]
9 P, I' x' j* W$ v; b% G- U9 r async = True
5 ?$ i% a" |: W/ ?/ k7 k0 S bandwidth = 0
5 a+ A4 Y4 D* C9 E( I base_persistdir = /var/lib/yum/repos/x86_64/7
4 @. n, Q( B. L% u baseurl = [url=https://download.docker.com/linux/centos/7/x86_64/test][color=#0066cc]https://download.docker.com/linux/centos/7/x86_64/test[/color][/url]
; b# d) m3 p  s- Y cache = 0- [7 T8 _+ u% {) |* t* Z
cachedir = /var/cache/yum/x86_64/7/docker-ce-test( {5 _2 Y# m" \. ?
check_config_file_age = True
6 x, |' q6 d4 n$ u$ C) t, b$ a compare_providers_priority = 80
" _4 {+ D$ \, {+ L9 x cost = 1000+ ^0 j. W: D% S% k3 z3 X
deltarpm_metadata_percentage = 100  m2 l. u( w" j- p$ R9 R% q* A# U$ V4 L
deltarpm_percentage = , F+ [% ?3 J- G* }( Z  \* C4 y
enabled = 1
1 `3 S* C. w* ]9 B, I  x4 D enablegroups = True# [  W( b) ?  `+ y
exclude =
& ~8 }& J: ~. M8 [& y2 k failovermethod = priority
- v: Y6 ]0 }1 E% n( R0 ~6 @& W ftp_disable_epsv = False
- {, F/ S) N# U gpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgcadir) S) M2 @- J+ m2 O/ [
gpgcakey =
2 L/ y5 W( }/ O, A% [ gpgcheck = True
, z% F2 F( Z) [- r2 k. v gpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgdir9 o; J5 D2 }( Y9 i# q; K% o1 o
gpgkey = [url=https://download.docker.com/linux/centos/gpg][color=#0066cc]https://download.docker.com/linux/centos/gpg[/color][/url]6 a/ |, `# d# S, f6 D( p
hdrdir = /var/cache/yum/x86_64/7/docker-ce-test/headers% V$ p9 [: @8 D9 k. n' l
http_caching = all
$ j$ t. p1 v1 J  y includepkgs = $ k# _- B- m1 _% z& p, B
ip_resolve =
8 t9 D' W' y: Z keepalive = True
# Z) J0 z0 m; b keepcache = False
& o2 `- M" F" C  J% q mddownloadpolicy = sqlite, r, Q. S. Z  i5 f# g7 l: k; H
mdpolicy = group:small- U; h. s7 r. t( v+ ]+ q" H
mediaid =
3 t6 {/ j/ N/ _0 q* c- O metadata_expire = 21600
: O1 X3 u7 W5 S- m metadata_expire_filter = read-only:present
' W' X" v& i  h+ ^0 L: i2 C metalink = 9 x: Y1 K4 Z8 u8 l1 I
minrate = 0
1 ^& @! p% a5 N. v# N) `* P mirrorlist = , N- a/ b+ J/ y4 n# n+ ~
mirrorlist_expire = 864006 S7 W6 M3 a/ H9 E& S7 t/ h
name = Docker CE Test - x86_64' F7 V9 }+ {- R+ g
old_base_cache_dir =
& r% {7 Q' r9 x8 N' F password = # ~- c% ?1 g, L  B5 e
persistdir = /var/lib/yum/repos/x86_64/7/docker-ce-test
8 W) i$ l- X: g! R9 |  c2 y pkgdir = /var/cache/yum/x86_64/7/docker-ce-test/packages
% h- o7 @" f+ F6 V  a, Y proxy = False! @' y, _; m5 L9 a: i6 W8 r
proxy_dict = ' L1 @- o* T' F- ?2 @2 {
proxy_password =
, M# ~$ {; Z0 S proxy_username = 3 S. D9 Y: q& k; z/ q/ o* |1 A8 R
repo_gpgcheck = False; n8 N; V2 K4 o* P9 ~0 c0 G: \
retries = 10
- F' L5 w) _: c  l$ m" y5 G skip_if_unavailable = False
  [; V8 _6 h% }$ `$ H3 Q' {/ K ssl_check_cert_permissions = True
" ?* ~6 G0 V9 \, @5 f sslcacert =
- z7 i8 w) r  @% Q; X! ] sslclientcert =
* P- T) \$ }- {( c  H1 d6 I, z+ y% Q sslclientkey = 7 \8 _" z) o: }
sslverify = True  ?0 Y, u* z: S& n( T
throttle = 0
2 |! C) @! l% A2 s1 I timeout = 30.0( D0 d, M; s  v0 i# q. _
ui_id = docker-ce-test/x86_64, h9 {$ E4 h$ X1 J  a- `! N
ui_repoid_vars = releasever,$ y% @2 i: E# h/ e
    basearch
5 d8 u# X) J  ]3 N, ]- Z" e; _" u username = ' K) b. q5 h4 ?5 N: S

3 J" @! x. U! B8 {. s; e- [% q" m! v4 M
3 Z7 U1 v# g& t5 I1 ]" d0 c
安装相关包:   yum install -y yum-utils \
) C' p5 J: D. _7 w  device-mapper-persistent-data \) |! S8 B4 ^% z; D! z
  lvm2# k+ P0 _; P# F

* C: s/ `! F1 R# H+ k( t+ _& i5 E, O' S' Z' R4 E5 G. z3 F( `8 X
配置yum的repo文件2 J! _  u) F  p7 m4 K' E
yum-config-manager \
" R' r, o. {( V8 Y2 `" W    --add-repo \, p5 c' l( a- l
    [url=https://download.docker.com/linux/centos/docker-ce.repo]https://download.docker.com/linux/centos/docker-ce.repo[/url]- e- b7 h9 J2 d% _; c& T

3 l' ?( N) C8 F! p: Ryum install or yum update  h+ [6 G; R3 i; z3 C& d
  U* z0 Q% J: V" k2 K/ N
安装docker-ce
  S# N9 [% |8 c- @3 N" ^" m& d# L# B9 ~; xyum -y install docker-ce
9 T! F' o, D+ Y3 e0 s/ g; C* {
4 f1 n! O5 X9 A+ W1 Y  ?7 t5 A4 }: i" ^9 d' ~5 t

7 L: w- K  r' t5 G7 A

点评

  发表于 2018-11-29 15:08
 楼主| 发表于 2018-6-21 13:15:51 | 显示全部楼层
yum-config-manager --enable docker-ce-edge   测试验证yum源状态和信息0 @9 \5 @0 L( c+ W
yum-config-manager --enable docker-ce-edge
6 C: m2 }. f) ?Loaded plugins: fastestmirror
8 o: g* Z' [3 x================================================================================ repo: docker-ce-edge ================================================================================0 F3 P; l3 s' R6 @9 Z& X
[docker-ce-edge]- x2 @9 X2 z1 {9 C4 S
async = True; f; d9 G+ l+ ^5 ?; A# d* v4 x( }3 j
bandwidth = 0  I4 E* p1 \+ Y- Z4 y& {
base_persistdir = /var/lib/yum/repos/x86_64/7/ W& {- L$ w. |( c* z! S% t
baseurl = [url=https://download.docker.com/linux/centos/7/x86_64/edge]https://download.docker.com/linux/centos/7/x86_64/edge[/url]
) F1 |9 m7 `( H0 {cache = 0% s+ u& }! l; U: `# x
cachedir = /var/cache/yum/x86_64/7/docker-ce-edge7 @+ k0 g7 r6 @
check_config_file_age = True
. ~' x. j- z: _) \compare_providers_priority = 80
/ O! P6 ~) g6 w; I% P9 {cost = 1000
* N' `! Z9 j5 O7 _deltarpm_metadata_percentage = 100
( f$ I" H8 d4 i1 |  h1 O6 m5 Zdeltarpm_percentage = 9 ^0 r# Z; l9 V+ e5 F( s7 ^
enabled = 1
+ c! r2 L. j# u: B' h+ Z* R/ Renablegroups = True: K) g- R, `# C* D+ w6 e9 E
exclude =
; b7 G, U) J  a2 z- y# [8 Xfailovermethod = priority
9 N& x1 {# B+ {! s; dftp_disable_epsv = False
" u& t; X4 w2 ^gpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgcadir
! l/ |) m8 l3 T. s: ?2 O" e/ Jgpgcakey =
# ]: E7 X2 b, T% `4 p# h0 s2 |# Lgpgcheck = True  Z1 ?* q; h' `! i
gpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgdir
3 H& N8 k  s7 egpgkey = [url=https://download.docker.com/linux/centos/gpg]https://download.docker.com/linux/centos/gpg[/url]
" @% r% A+ q# c1 n+ U8 ahdrdir = /var/cache/yum/x86_64/7/docker-ce-edge/headers
5 `1 j8 U5 s" @& s  k+ U5 Ahttp_caching = all
6 n2 v6 }( E4 \includepkgs = " G* I- C# Q5 \. P3 O
ip_resolve = : ?" _* ^2 Q# B% e' c
keepalive = True9 Y& t6 o/ f* I  @+ z% u; e/ h
keepcache = False
( W% r* f0 r# Q+ v5 v: A9 tmddownloadpolicy = sqlite
) R1 \5 g6 {7 \: J# umdpolicy = group:small6 E3 U' ]' n. |! k, F
mediaid = $ N% B& ]/ Q$ x) S
metadata_expire = 21600; c; l, B9 M" O7 Y, F1 v1 N
metadata_expire_filter = read-only:present
' \8 F6 d6 M( J/ O9 o' nmetalink = - h$ M: g6 d; E7 o' W0 n* r
minrate = 0
" a6 ?; a0 @" D) M$ m8 z$ Ymirrorlist = 5 h# w' P# x! i
mirrorlist_expire = 86400* h9 V& b! c# z; z
name = Docker CE Edge - x86_64% V) A! H8 M) P
old_base_cache_dir =
- B+ ]4 t% L* H. s' ^9 Ypassword = % B/ q2 R& h4 D
persistdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge
9 `/ S' \% d' h$ @8 e5 J1 r$ t0 _pkgdir = /var/cache/yum/x86_64/7/docker-ce-edge/packages
! S" H8 B. E) \2 q  P! P! oproxy = False
. g) g  w$ I8 |proxy_dict = $ q, @' X' p6 j7 j5 s5 j9 u
proxy_password =
1 [1 S* \( M: a2 Fproxy_username = 9 f6 [- u6 z) u' c
repo_gpgcheck = False" z/ P: ]" w% L
retries = 10' S( k7 ?6 _; `/ W4 [
skip_if_unavailable = False7 v+ }8 q- R* @! O2 P& n& V
ssl_check_cert_permissions = True
' d! u& B: z: Msslcacert =
8 Y" P3 l: x0 P1 ]& o8 `0 w+ @. r6 esslclientcert =
) [/ p: M7 R5 b) r2 f' A( w+ b- Msslclientkey = ' e! R* R# q; z3 a* q% w# n
sslverify = True* a  s) F8 }0 r6 x9 R0 k
throttle = 0
5 V& \' G; `; N/ E' i7 m3 K" etimeout = 30.03 x5 _" Y9 j6 O
ui_id = docker-ce-edge/x86_64
  a' u, l) I4 q6 H! ^6 cui_repoid_vars = releasever,
% {# o: c7 I5 V   basearch4 M2 L6 J5 X9 T8 Y0 U+ o0 y
username =
% o  @  {4 m! |1 T7 I& l& W6 R
! q4 O/ n6 a2 V: n# yum-config-manager --enable docker-ce-test. K0 n" ]! ]4 B1 G7 A# e8 C
Loaded plugins: fastestmirror
3 _0 F: L0 R! j  z: }& i9 w1 e8 |8 S================================================================================ repo: docker-ce-test ================================================================================
; z: Q- U/ [- \3 n' ~[docker-ce-test]% W4 G& r+ N8 _0 d/ C
async = True* x& R4 D4 p2 \  H. x
bandwidth = 0
  A: H( f9 H  W) O9 Y/ |7 A0 _base_persistdir = /var/lib/yum/repos/x86_64/7
. j* g# B" Q, X3 vbaseurl = [url]https://download.docker.com/linux/centos/7/x86_64/test[/url]
! t: C; T- i+ s7 N& }9 Qcache = 0
4 Z! k4 k; r' Wcachedir = /var/cache/yum/x86_64/7/docker-ce-test1 ~3 J7 g5 o. p. C
check_config_file_age = True* w' |, i8 m3 G) M; b+ D( U, W
compare_providers_priority = 80
! U' i% D/ r8 k( X" x, B9 Gcost = 1000
$ n6 `0 W, P) Wdeltarpm_metadata_percentage = 1008 _6 f* o) b/ Q% a
deltarpm_percentage = . Y- ]7 w, y; c" C. M$ g
enabled = 1
. F6 R5 f2 l+ }: @$ \1 l0 |2 \enablegroups = True
! z, {/ o: }2 _; T7 Q; L% _- Xexclude =
9 [7 D  t2 }1 }( V  |- ufailovermethod = priority4 ^6 w% H$ n/ y- ]& X
ftp_disable_epsv = False; L0 o* p6 d" }3 J% Y, H$ e
gpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgcadir# M; d1 T+ P# S7 [+ C; a0 j
gpgcakey =
  u: c4 l# B! L0 D) u) k  [, Sgpgcheck = True7 h4 C/ z+ k* f1 W
gpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgdir) [4 T8 A2 i& u2 V( n( W1 f
gpgkey = [url]https://download.docker.com/linux/centos/gpg[/url]! u4 o. N, r8 w/ A4 ]
hdrdir = /var/cache/yum/x86_64/7/docker-ce-test/headers3 ]; F4 ?3 r9 ^; B& u7 {
http_caching = all8 _$ C; [' s0 V3 c4 b( v- }( p
includepkgs =   e7 t' a% Q6 N  |3 `. K+ M
ip_resolve = ! |* h  {% i  c+ ]% |: ~8 h
keepalive = True
6 [) \: n' R2 _3 N* dkeepcache = False4 B. z/ n7 Y' P4 Z) I: p
mddownloadpolicy = sqlite
) H: H* T0 O% H$ e9 c3 Rmdpolicy = group:small. t$ {5 G( X: s/ O! d! `& L
mediaid = # H: }- n' o  Y, V4 B* d# B
metadata_expire = 21600
. {, W4 A" b2 Z9 Z: y( z. y# cmetadata_expire_filter = read-only:present
' n7 T4 u3 y3 @8 }  g$ f( {metalink =
9 c$ ~% U+ g) _& A" Vminrate = 0
7 ^/ |" ~  h( D! N/ E" e6 l( \2 d8 I; emirrorlist = ) K( b' F* W9 L8 F' `% H6 H+ |
mirrorlist_expire = 86400, W. e9 D& z2 y6 @$ T2 i
name = Docker CE Test - x86_64
: o& d- p; C4 \% [: {! ?old_base_cache_dir = 3 G! |1 M" Q# O' a* |; \
password =
- g" _( y: [5 X$ Fpersistdir = /var/lib/yum/repos/x86_64/7/docker-ce-test
3 ~2 O, P% J) F6 Y* v# G' Z0 dpkgdir = /var/cache/yum/x86_64/7/docker-ce-test/packages+ C% d8 k5 w" b+ G6 i8 P
proxy = False
2 o  v9 f: r! Z8 H' dproxy_dict =
7 m1 M( r' C1 G! E& d, E# Kproxy_password =
1 D6 t$ i5 M" k7 a6 n: L) [  lproxy_username =
3 i5 N. r: I) K' }' Y* K3 Orepo_gpgcheck = False" I9 N& @" K5 @$ W
retries = 10- V7 |: s8 k& f4 ~# Z
skip_if_unavailable = False
! g  K6 z8 H" e9 h, R9 rssl_check_cert_permissions = True
  f/ f& u+ _/ q6 w3 u& x7 z! Hsslcacert = ! `' K' }. v, Q6 V5 R( ?2 N
sslclientcert =   a" {; f7 z* D7 c& f! n6 |: |8 u
sslclientkey = & w2 V2 e" L, i( ~% ^* f7 W  F
sslverify = True
; Q3 W6 S2 M8 t* Sthrottle = 0* q( ~) z4 d) T, x5 X+ t3 ~
timeout = 30.0
8 ^; y; j9 f& }2 y0 g) R5 ~/ V6 pui_id = docker-ce-test/x86_64
/ O, L% F* y7 a$ ?9 g) Hui_repoid_vars = releasever,, l" o0 H; W  W3 {
   basearch
7 }# P. U* k! J4 p( z- ?username =
( s5 k0 q5 [) R( E0 h. E2 _+ M, p* K4 n- x( P+ m
发表于 2018-6-21 13:21:28 | 显示全部楼层
yum list docker-ce --showduplicates | sort -r
发表于 2018-6-21 13:22:46 | 显示全部楼层
curl -fsSL get.docker.com -o get-docker.sh
 楼主| 发表于 2018-6-21 13:24:49 | 显示全部楼层
systemctl start docker.service
; Q+ `/ c5 _. f! A5 X启动docker.service服务。) \5 }# Z' n7 a! B3 Q+ V0 X' e/ ^
 楼主| 发表于 2018-12-9 09:51:15 | 显示全部楼层
yum list docker-ce --showduplicates | sort -r    查看yum源中docker-ce的安装包4 V6 N3 j# n" H6 s: c, Q" z

9 w/ F- f7 _1 p$ lcurl -fsSL get.docker.com -o get-docker.sh    获取docker 相关脚本。
* E6 i4 P9 h( q: j) V& x- _8 c: T3 u" E0 B' z
systemctl start docker.service) ^4 ^$ _; l. l. ?
启动docker.service服务。
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

如有购买积分卡请联系497906712

QQ|返回首页|Archiver|手机版|小黑屋|易陆发现 点击这里给我发消息

GMT+8, 2021-6-20 21:08 , Processed in 0.055644 second(s), 24 queries .

Powered by 龙睿 bbs168x X3.2

© 2001-2020 Comsenz Inc.

快速回复 返回顶部 返回列表