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

易陆发现论坛

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

CentOS 7 安装docker环境

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

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

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

x
Centos7安装docker( y7 L1 t& k" r9 ^6 w2 G3 P
     各个操作系统的安装可以访问:7 z, v! y$ |( }8 m, e
     [url=https://docs.docker.com/engine/installation]https://docs.docker.com/engine/installation[/url]
: w/ ]4 w( }. c/ I% }, hdocker分为开源的免费的CE版本和收费的EE版本:. f) Y" ?) Z/ P- m4 y
以下实验环境,采用在centos7.2操作系统上安装,使用docker版本为Docker CE版本:& U8 O9 I; d1 S
配置docker的yum源
5 A2 b6 `4 ~  z7 k, E- J3 L. ayum remove docker \4 [/ W0 J9 n$ x) A' k5 _; `6 x5 Z
                  docker-client \
8 Q5 X- y1 ^& d' K- b                  docker-client-latest \! @: Z3 \7 I% b( A; q! m+ d
                  docker-common \
0 ?! ?4 F$ U% i! |% l# `                  docker-latest \
$ t# n$ t% |8 _% P! T2 c, c                  docker-latest-logrotate \& Q& v6 p3 N; a5 t& {# F! B& F
                  docker-logrotate \5 \0 P  T# h! Q
                  docker-selinux \
1 Z$ F  @( p4 x, Q# U                  docker-engine-selinux \2 o! t8 J0 z1 Z+ I
                  docker-engine
" F+ f  g& f9 J" e5 a+ y2 @, I+ G3 W( l* U  o
0 \' N4 B2 ?# l/ ^* g$ _/ p
yum-config-manager --enable docker-ce-edge   测试验证yum源状态和信息, x+ |$ G. C( c1 J2 Y
yum-config-manager --enable docker-ce-edge$ `7 f5 r, m5 Y- r# G2 q
Loaded plugins: fastestmirror3 Q. x- O* ~4 T9 i) i. B. {
================================================================================ repo: docker-ce-edge ================================================================================
# _! O- `" {3 K) [ [docker-ce-edge]
& O5 `# \5 w2 a6 L6 K/ v  I2 n async = True9 R; g5 }) n0 t! w
bandwidth = 0* N, p  r4 X0 O1 x- u
base_persistdir = /var/lib/yum/repos/x86_64/7
1 a$ z- x  }# G7 o 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]; t* r$ T, y# r2 ]" X  ~3 p# W
cache = 0
' W" }, ~( F/ |1 ^ cachedir = /var/cache/yum/x86_64/7/docker-ce-edge
6 ^& b5 C& m& Z2 u3 i check_config_file_age = True
* h* S* V# A& W1 S; ]  D3 m compare_providers_priority = 80
: o/ v& U* v7 p, P cost = 1000* @- m7 x- ~9 r
deltarpm_metadata_percentage = 100
0 y! G  \3 n, ~/ A" ?5 I! g deltarpm_percentage =
  O0 b! R7 M" f! L1 n7 `) \" e enabled = 1' j& O& x) c( L% R+ I
enablegroups = True
. S& G4 d1 ]2 ~ exclude = # G/ w. G4 C% R) V. o1 e$ p
failovermethod = priority3 y5 \  x; Z- n* a; r' M, k6 d+ t
ftp_disable_epsv = False
' D9 Z3 }1 K  i gpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgcadir( i7 l% Q5 ?- S2 j- d
gpgcakey = + I0 K( H0 [0 o1 I. P' ]" [+ ~
gpgcheck = True
6 U8 A- I6 e9 N4 j7 E gpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgdir2 F$ h! x) y* u$ H; |  Y
gpgkey = [url=https://download.docker.com/linux/centos/gpg][color=#0066cc]https://download.docker.com/linux/centos/gpg[/color][/url]' k$ g9 u6 C- P
hdrdir = /var/cache/yum/x86_64/7/docker-ce-edge/headers4 i* Q% U3 j. @$ f; u. L  o
http_caching = all$ B% e8 f. D0 P# |% _3 q3 X* x
includepkgs =
* d/ x+ R3 |) F% A% S ip_resolve = + r; [( h) y4 l% u& d- ~3 q  h4 p
keepalive = True8 C- m7 o: L9 [
keepcache = False
1 f4 {3 B: {$ s+ i) u3 m mddownloadpolicy = sqlite" I! y, g* @# m
mdpolicy = group:small- N% H+ X2 T! y" h+ E
mediaid =
; e& B) a0 ]& { metadata_expire = 216001 B1 s% h+ F: S. |9 H
metadata_expire_filter = read-only:present
1 ?, v2 ]" O) M+ M  Y% h+ d metalink =
+ B- E; {7 W, h minrate = 0
+ x' _' `# A- |2 C) o2 y" ? mirrorlist =
# m: X7 |3 u% F5 m' ^6 b$ g- T mirrorlist_expire = 86400
9 n  C# ]. t. ^. @" X3 u( } name = Docker CE Edge - x86_64  X  S  l. d$ r2 X& p
old_base_cache_dir =
' a' g4 H: v8 z) K8 r4 `5 E password =
, V: q& L  y7 G# `- u persistdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge
- q. _5 k% X$ x' `& w$ E pkgdir = /var/cache/yum/x86_64/7/docker-ce-edge/packages  e/ C2 y* f5 X/ l
proxy = False
; y4 ]+ Q. c+ e6 b! Y( A proxy_dict = " `3 R# c5 J9 D' s$ ^+ z1 E
proxy_password =
% \+ B4 M0 O' z4 z proxy_username = . B. \% z1 t, B# ]7 I
repo_gpgcheck = False
5 ^7 V8 h# y/ P retries = 10  O) r- z7 g5 j3 }6 p
skip_if_unavailable = False
3 i" l3 B! S+ K, X ssl_check_cert_permissions = True
8 }) N, U8 |9 U$ }/ E sslcacert = 5 ]( n( b+ M! N6 O+ c2 {- _, W
sslclientcert =
! m7 }: Y# v1 Z- H- c sslclientkey = + P; i3 H( I7 Y) q- N
sslverify = True
. S: J9 ~% W: Q9 f) o5 g* J& V2 R throttle = 0
+ l7 d, p5 O" v$ e) l timeout = 30.0  A2 [2 Y+ @+ R, a6 v! p( a0 q
ui_id = docker-ce-edge/x86_642 J+ A* V: T: ^9 b' y: C
ui_repoid_vars = releasever,
  D2 u* f* |0 ]    basearch9 B5 h6 i9 z& E: t$ Z7 @
username = 4 D; j5 d  \" [# \: r5 k. {5 Y' h( L. ~
0 f3 P2 [; t6 J$ D( o. r1 q/ a
# yum-config-manager --enable docker-ce-test
9 W. d- Q  Y# c9 z& `4 r/ x2 y Loaded plugins: fastestmirror1 |# \- D+ t. F2 w  i8 F9 F
================================================================================ repo: docker-ce-test ================================================================================
$ j1 b, h/ y, C: D [docker-ce-test]
/ }! S, c* W+ j! F async = True
" d9 f8 x- y7 g( }0 b bandwidth = 0
4 x8 L6 S( }7 V( o7 u base_persistdir = /var/lib/yum/repos/x86_64/7
3 \/ Z- R0 C  ^3 O1 A 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]
- t$ K1 p7 t5 W+ L( f: W4 s8 Y; e cache = 0
4 Y' P; [' y% k& {3 K cachedir = /var/cache/yum/x86_64/7/docker-ce-test
5 e6 l7 h- G, k2 T+ v5 z check_config_file_age = True# B' W) S* J' L1 o% @* t+ }' \
compare_providers_priority = 80
! S& y1 k# r8 @* q' y6 s cost = 1000* e3 X' u$ P& p  O# p! \
deltarpm_metadata_percentage = 100
& z4 j2 z; l( K' E5 B# Z deltarpm_percentage = , Q+ Z/ g2 S% B
enabled = 1# d& y! S$ B$ h, w3 T
enablegroups = True+ E- |7 u3 P' `. X
exclude =
4 k# k( L$ l! _+ ^5 z8 c. | failovermethod = priority6 T, q$ l; V* e, @: C4 z+ U  f
ftp_disable_epsv = False4 V0 U2 H! i' ^  f! J6 _' R
gpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgcadir
, R5 X! M4 _6 I3 A gpgcakey = : }! ]3 z) Y5 p7 m3 f# b: K4 K' ~
gpgcheck = True$ A1 T! p2 w4 o9 z0 S2 Q
gpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgdir) O5 D  X- i' E9 M4 s) \
gpgkey = [url=https://download.docker.com/linux/centos/gpg][color=#0066cc]https://download.docker.com/linux/centos/gpg[/color][/url]
5 c' T' e+ D3 L' N# S hdrdir = /var/cache/yum/x86_64/7/docker-ce-test/headers
) |9 {0 ]; O( J  l) P http_caching = all* k* b$ F: P8 T* K/ U5 X
includepkgs = : u$ A6 ~3 v  F7 p3 I
ip_resolve = % o1 q# S9 z4 z: p; [! t% V
keepalive = True
* {) z# o& a: O keepcache = False, f$ ?8 e4 C- e: R
mddownloadpolicy = sqlite$ |8 u3 f1 ~/ `' }$ ?8 {
mdpolicy = group:small5 `- o/ E( g9 ?0 c1 y0 i
mediaid = 0 S. s- {3 u6 {. U5 d
metadata_expire = 21600$ ]4 j$ I$ P+ h: W" o
metadata_expire_filter = read-only:present2 [4 k. o) [1 f4 C/ g4 O6 s; ]
metalink =
5 b" ^3 S: C* M& K, i minrate = 0
/ j5 H8 ]/ h, n/ @) e+ i' \. H: V4 d mirrorlist = : P$ M" a; f$ h
mirrorlist_expire = 86400& u: T% M) g: p4 v% `+ A
name = Docker CE Test - x86_64
" ~$ p2 `2 l. ^ old_base_cache_dir = ' u/ J' D! ?/ ?: n7 _; t
password = ! x" c! d$ y$ M, Y) U! E* }# R
persistdir = /var/lib/yum/repos/x86_64/7/docker-ce-test
& J9 f4 K( J3 g; B7 I  H# a" \ pkgdir = /var/cache/yum/x86_64/7/docker-ce-test/packages3 Z+ ~  T8 G, P0 d0 L6 o! Q" o
proxy = False
: k4 N- p7 z$ W  N7 i proxy_dict = 1 p6 J4 M. `7 `
proxy_password =
2 ~6 f, d1 e' S. @1 z proxy_username = $ N3 V6 a8 M/ ]% j$ Z+ ^9 t6 ?
repo_gpgcheck = False3 M& e9 _. `, Q/ Y: O
retries = 10
7 I5 k2 h! `, m+ o$ @ skip_if_unavailable = False+ _- D0 L) K( t* X$ k
ssl_check_cert_permissions = True
* q. Z9 y3 r- a" f sslcacert = & j" q  d8 z9 R+ W
sslclientcert =
" L! ]; O9 B4 T sslclientkey = + ~) {! Y5 H  n
sslverify = True
  R/ k! C( G5 A+ }& R% Y: y throttle = 01 W0 @; Q; q3 b  r. `
timeout = 30.0) B  _3 y, h' w. j5 ?
ui_id = docker-ce-test/x86_64) i& u3 R8 D; }) L$ c; y
ui_repoid_vars = releasever,
9 c* K. a4 _6 T7 D2 u    basearch3 W+ o( a1 l) \- B( P/ |1 h
username =
" e: D( Z1 a5 R( t" a' H: u4 w+ ~+ p6 m- w* k: E
' ]# `; o& _( j6 O( \  U

4 H: v, D0 R/ L" O安装相关包:   yum install -y yum-utils \
, _+ Y; X: @5 S  device-mapper-persistent-data \
" {- o' q# l1 ^  lvm2- q4 k, X( m2 S3 W% E! q0 J, V
9 a$ {3 Y" t* x3 l% N- O

  g7 h$ j# Y  d" l: M5 A6 c配置yum的repo文件- R- b  G% i" b2 r
yum-config-manager \: \- r4 V' o2 y( [0 Q
    --add-repo \
8 Q; M, `4 ]# i- K" v    [url=https://download.docker.com/linux/centos/docker-ce.repo]https://download.docker.com/linux/centos/docker-ce.repo[/url]
" Q1 L: i* V. c$ @5 h* |" ?9 J& @6 ~2 Y* u
yum install or yum update. e% ~+ U) F! @( [# j+ K  ~, Y
4 P- G; |0 x% \* M( ^5 e
安装docker-ce; }4 V3 H4 J0 u9 L+ o
yum -y install docker-ce
( G& m3 F. F) d3 p
/ [  n3 i, t( R
9 b' ^% M  _7 _+ E. Z6 o  o/ |8 p( M3 ^

点评

  发表于 2018-11-29 15:08
 楼主| 发表于 2018-6-21 13:15:51 | 显示全部楼层
yum-config-manager --enable docker-ce-edge   测试验证yum源状态和信息: {1 Z% Z( l- R" x  R7 s
yum-config-manager --enable docker-ce-edge0 E5 ]" G' p8 m3 J" K! S8 L
Loaded plugins: fastestmirror
* Z+ {$ A: z% I4 e( s================================================================================ repo: docker-ce-edge ================================================================================- o$ T' W* \# t5 l( E, e# Y( P1 R
[docker-ce-edge]
5 V, K! z' ?( [9 N+ W7 Rasync = True5 V/ D) \. W# P' C+ O/ u
bandwidth = 0- L7 B* L: H$ `( q* V# _/ s
base_persistdir = /var/lib/yum/repos/x86_64/7
; u8 G6 _9 c& _& fbaseurl = [url=https://download.docker.com/linux/centos/7/x86_64/edge]https://download.docker.com/linux/centos/7/x86_64/edge[/url]8 q+ \" F; U' c6 i& W/ d' R# r
cache = 0. I2 k: @' o8 ^- ~8 y
cachedir = /var/cache/yum/x86_64/7/docker-ce-edge! j" B( b& r  J$ X1 D& Q
check_config_file_age = True
: V7 p. n! o. q8 U5 Z9 y7 L1 Ncompare_providers_priority = 807 N7 j  J2 F4 J, c/ L
cost = 1000: {: E/ L1 D* i) g1 b0 @: l3 I9 s7 C
deltarpm_metadata_percentage = 1006 A3 n. [0 L+ J* ^7 X, E  E
deltarpm_percentage = 8 c& m$ ^* R/ H* Q1 Y- F5 T
enabled = 1. B+ W- f* i# j7 W  P: F$ Y
enablegroups = True: [8 y; u" Y2 s" ^
exclude =   h# S' q9 S: t. l' x0 b
failovermethod = priority
; h1 _4 a3 `5 c! Fftp_disable_epsv = False6 G* W* N6 O2 w  }9 g/ F% q% Q  V
gpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgcadir
% A! V" z5 p! S2 I) Q8 wgpgcakey =
6 u) `$ j4 x1 A" z( ?gpgcheck = True
" K0 {( q4 e- J  C7 qgpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgdir1 ~5 a( k6 F7 d: \2 I; r6 }' k
gpgkey = [url=https://download.docker.com/linux/centos/gpg]https://download.docker.com/linux/centos/gpg[/url]
* w7 E- B* {7 V, E4 R3 S8 o2 Whdrdir = /var/cache/yum/x86_64/7/docker-ce-edge/headers
" j, d9 S- S- p( r  r2 Q7 ?http_caching = all4 M4 v, q2 V; D6 ?
includepkgs =
4 M9 N- L7 e( xip_resolve = * H* D8 F' O& R
keepalive = True% w1 T; }- \" o1 T8 j" V, `
keepcache = False. E8 p+ b: s# b5 {
mddownloadpolicy = sqlite
4 n& j4 g8 i( }( {6 v7 Omdpolicy = group:small
. K+ t# o- b5 e# l4 _3 u9 ^mediaid =
  b1 u5 ~/ M% k, p7 m+ mmetadata_expire = 21600
- X, c- }4 F) v, @metadata_expire_filter = read-only:present* s5 T9 U1 T# ]9 a4 \# I/ X
metalink =   Q% [+ P* g9 M! ^! ]4 W
minrate = 0
; z- K0 H6 W2 I' I# G' Umirrorlist =
: l* R: H2 \# ^mirrorlist_expire = 86400$ o; j& i, l% u
name = Docker CE Edge - x86_64# W1 k, f- X& O
old_base_cache_dir =
  v" N$ F2 Y4 \0 g& e" d) vpassword = ( M% x6 q! E; e! Q5 m
persistdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge. H, R. X) |% J+ ~
pkgdir = /var/cache/yum/x86_64/7/docker-ce-edge/packages8 B' n( R( C8 R" Y8 q
proxy = False$ X9 i! R: Y1 v
proxy_dict =   L2 K% ^2 v( a7 h
proxy_password =
3 A7 h: k; q  z1 e4 ~+ Nproxy_username = 7 K- n& Z# A' h3 H
repo_gpgcheck = False: G- o. k6 N" b7 p) W
retries = 10
8 h: H3 w& I8 y6 d9 ], N: Sskip_if_unavailable = False
3 h+ P! A& O2 O4 ]. nssl_check_cert_permissions = True
1 W% f9 C5 q, K0 Hsslcacert =
& H$ [/ r& M. F4 [/ e. fsslclientcert =
0 U6 u6 [& ^( L% b0 Q3 H4 asslclientkey = ; ?# L$ v) [" @
sslverify = True& h' s: k( g7 u
throttle = 06 x" Z. v& r4 ?1 h) R$ z2 d$ O7 Z
timeout = 30.0; W2 `' I; p( W
ui_id = docker-ce-edge/x86_644 n( ^" U( m4 t$ R7 l
ui_repoid_vars = releasever,
* p( N+ z9 e5 s. x   basearch
# }% G0 |* L/ h; @username =
. R4 S" I5 ~3 Y% x7 w
9 g( S- I! L5 I  s# yum-config-manager --enable docker-ce-test
, M4 q% h3 O% ]& r+ J( D$ ?, xLoaded plugins: fastestmirror
8 N& p$ f1 [9 @5 b7 h/ C  @  n* N================================================================================ repo: docker-ce-test ================================================================================
+ J  p& e1 T1 U7 f+ Z  r[docker-ce-test]
6 e1 e% o% v# J( Masync = True6 i( Y) f; ~% {2 S- ?
bandwidth = 0
9 R4 `! C6 B0 e! g0 bbase_persistdir = /var/lib/yum/repos/x86_64/7
' q4 [1 L! |+ {' \  x8 h( ^7 ebaseurl = [url]https://download.docker.com/linux/centos/7/x86_64/test[/url]8 C" |+ m5 W5 L" M6 A$ ?. G/ e
cache = 07 P: b& L1 b9 M) z9 e8 d+ N! N' X
cachedir = /var/cache/yum/x86_64/7/docker-ce-test8 |7 \% d3 X$ h
check_config_file_age = True! D: X& P0 q/ @
compare_providers_priority = 80
$ |" M8 i, i6 Qcost = 1000
6 y+ |) {/ y. o% v7 W, j- Jdeltarpm_metadata_percentage = 100
; m3 G3 C% K1 x8 D$ ideltarpm_percentage =
* s  y% R/ m9 C. d: D( x! Tenabled = 17 x; K! W: H; F9 E; |' i
enablegroups = True
8 C* x3 ~, e8 Y3 ^) Dexclude =
! \+ G) ^+ @0 i9 b/ U. W: wfailovermethod = priority
( O. C; Y; }2 v! J6 ^- B9 }ftp_disable_epsv = False9 {1 r" ~) d  \1 ?. {, d
gpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgcadir
' C1 e$ y7 ?, K  Y: ?/ ]gpgcakey =
' H$ M' j5 N7 [( Fgpgcheck = True
4 a- c; V; I- k5 g9 t' R: ?gpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgdir+ H! A0 D) |: D
gpgkey = [url]https://download.docker.com/linux/centos/gpg[/url]
& ~8 o. n+ l, V5 h5 Zhdrdir = /var/cache/yum/x86_64/7/docker-ce-test/headers
5 _, v( i' ?, A5 e# C7 mhttp_caching = all
4 }" ~- k; U( U5 V2 z" V, Qincludepkgs =
% u7 F# @$ o: m6 O7 Fip_resolve =
" a5 j& C) Z2 Y1 F, I5 `5 \keepalive = True
' _. D2 P7 q% L* [  o, skeepcache = False
/ Y* W5 B1 o& K9 g; M9 H/ _$ Qmddownloadpolicy = sqlite. v6 d2 ~, x) x7 H. X
mdpolicy = group:small
  [* u( q" q2 {2 Q! N4 F0 Jmediaid =
. T/ d$ O9 Z8 f! Vmetadata_expire = 21600
( B' i- L$ q+ n3 A2 [9 j7 Jmetadata_expire_filter = read-only:present' }' ~4 c9 w( W2 X
metalink = - o! g' j5 l" \) I7 f8 {, z( e
minrate = 0& W( U- `, z8 ~' y! @  {# H: A
mirrorlist = , g/ i0 R1 \: F1 r( `
mirrorlist_expire = 86400
7 g: w1 E& X- `- zname = Docker CE Test - x86_64" U7 A# O* s" n6 r: U
old_base_cache_dir = ) r! j, |, u' ]2 r7 X! {, O
password = 9 [( f! t, E0 b9 b; n$ j7 C/ j
persistdir = /var/lib/yum/repos/x86_64/7/docker-ce-test
. ]/ z1 L0 b2 Zpkgdir = /var/cache/yum/x86_64/7/docker-ce-test/packages- E* g) c% E: W2 o+ @! J
proxy = False, t3 F2 C. H5 g9 K2 |) o
proxy_dict = . Y. \/ `7 X6 A0 ^
proxy_password =
0 l8 t$ t$ Q( ]' D, cproxy_username = : Z! p, F5 C* ?  O
repo_gpgcheck = False
, _' @* {, W1 V; g0 m/ J! L; w6 Gretries = 10' U) Q7 A3 n2 k( v, W1 J+ t4 W
skip_if_unavailable = False
7 L$ E: o6 \; h, v# X5 yssl_check_cert_permissions = True
" {. Q! y, S0 |; wsslcacert = . m, |7 T" X( a, S
sslclientcert =
% H0 v2 U- S0 I* `sslclientkey =
! D* ~+ ^# `( j+ ~! usslverify = True1 }! g3 e5 g( n& P; Z
throttle = 0
9 T& W: D8 X$ H" x* `- a4 k3 k- ktimeout = 30.0
) R9 o# l+ ~: k3 `4 |; ?' E; bui_id = docker-ce-test/x86_64  O9 ^3 |9 Z0 ]
ui_repoid_vars = releasever," h3 u* t2 W: {5 k
   basearch4 {+ {3 t- L; ?* w; x( K
username =
5 `* _+ }0 o. i6 k6 @4 k4 o0 I6 ?, 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
* u  b) E! Q' |7 _0 v; f2 _启动docker.service服务。
0 N1 L8 N+ f& X
 楼主| 发表于 2018-12-9 09:51:15 | 显示全部楼层
yum list docker-ce --showduplicates | sort -r    查看yum源中docker-ce的安装包
+ E0 a; l' M( C5 E6 O; K1 m% J( P4 ]+ }9 }8 c9 N
curl -fsSL get.docker.com -o get-docker.sh    获取docker 相关脚本。
, Q  }3 i7 D0 K3 U" ^4 l# s' Q8 H- C3 i( y' U
systemctl start docker.service; H/ e" C$ k# H* X. o; f  h# C0 U: T
启动docker.service服务。
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

如有购买积分卡请联系497906712

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

GMT+8, 2021-3-8 17:05 , Processed in 0.078114 second(s), 24 queries .

Powered by 龙睿 bbs168x X3.2

© 2001-2020 Comsenz Inc.

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