易陆发现论坛

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

CentOS 7 安装docker环境

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

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

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

x
Centos7安装docker2 a% q9 |* ^0 p4 D0 U" B  `
     各个操作系统的安装可以访问:
3 C% n* a% G" ?! [- m0 [6 S     [url=https://docs.docker.com/engine/installation]https://docs.docker.com/engine/installation[/url]
7 y/ g; F7 P0 l: adocker分为开源的免费的CE版本和收费的EE版本:
; t0 I, Y, p' L 以下实验环境,采用在centos7.2操作系统上安装,使用docker版本为Docker CE版本:% [( m  E1 m/ e% F
配置docker的yum源
0 b( D- N7 I- D" l9 ]$ |: X9 {yum remove docker \
* A/ m" k9 N( ~/ ~                  docker-client \6 N; b9 O5 _2 Q
                  docker-client-latest \6 r: Y* o5 s3 i& j
                  docker-common \
9 k$ [" y, B" l: Q1 e                  docker-latest \! E1 W' X7 a: J; X' |+ e
                  docker-latest-logrotate \  n0 J# ~( A3 S9 d: T" D; b/ S  `# _
                  docker-logrotate \/ g9 B* r, q* q* B
                  docker-selinux \0 r' d6 f5 V  Q1 [
                  docker-engine-selinux \7 i0 v( A6 }4 T4 S
                  docker-engine9 J4 L) O/ U. ?" h
, H- S9 V! I8 b, u3 \

6 r. Q3 N5 \! z; M& K! ?6 R7 ~yum-config-manager --enable docker-ce-edge   测试验证yum源状态和信息7 o5 L2 g4 r* T$ D% l
yum-config-manager --enable docker-ce-edge+ c9 ?# _, E. `) H+ ^7 d
Loaded plugins: fastestmirror. l3 {; H5 W6 N6 ?, o6 t2 p" i# F
================================================================================ repo: docker-ce-edge ================================================================================. x" @- K3 p6 A' w, u
[docker-ce-edge]( x7 B+ z5 x) Q( e) d
async = True
) J# E/ ~! r5 t3 n bandwidth = 09 l  I% T8 `/ y3 z& C
base_persistdir = /var/lib/yum/repos/x86_64/7
6 H# q3 ^) y) L1 e& { 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]
, l( O# R8 ?/ J, ]4 k* x5 q! P cache = 0( Z" d' w0 \! ~' S3 q: C- W
cachedir = /var/cache/yum/x86_64/7/docker-ce-edge9 s7 y5 Y# s0 J# {: m, V- S! H; X
check_config_file_age = True, {; m1 E# T$ N% f! @
compare_providers_priority = 80
: P8 n* d% Y4 X. _ cost = 1000. ^% l  Z( a& }$ C5 L
deltarpm_metadata_percentage = 100$ ]0 t( E0 |( h) |$ `
deltarpm_percentage =
/ T5 v' a* d4 h% D' a* A, \ enabled = 1+ s9 B# [: ]6 h2 B( {
enablegroups = True
/ C7 p5 G% Y) k3 E) A! t exclude =
4 J, c: |; u% L! E! [# R failovermethod = priority1 x$ I* ~9 t' H' q/ r
ftp_disable_epsv = False% N0 n$ z$ E- o+ }" Q; Y% @" d! s
gpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgcadir7 }2 b! j' ~7 o% y0 [
gpgcakey = 2 N* E! t% R- f; Y5 v* `
gpgcheck = True) `2 Y5 H$ j: Y$ T
gpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgdir
/ r; \8 D6 Y& ]) P gpgkey = [url=https://download.docker.com/linux/centos/gpg][color=#0066cc]https://download.docker.com/linux/centos/gpg[/color][/url]
/ f( b# z6 M8 K! m8 z7 @ hdrdir = /var/cache/yum/x86_64/7/docker-ce-edge/headers6 k8 ^. x( a* u
http_caching = all  ]: C( n/ {7 }# `# ^( Y. i
includepkgs = # Y" v% t8 x1 N  @
ip_resolve = - F$ c7 O9 X5 r4 O  U* O- A
keepalive = True9 W" h, x2 H( |2 \$ m0 m7 x
keepcache = False. s; i8 e5 ^: S* c/ `
mddownloadpolicy = sqlite0 |0 ]/ f" B' {: F7 x- q9 P! F
mdpolicy = group:small
, `, t7 D5 ?$ N' x+ b  j mediaid = " H* b; F/ T! b9 V% }( T' j7 v
metadata_expire = 216008 o( J! T, T  f" o( o/ V
metadata_expire_filter = read-only:present
2 ?9 |( f+ l) T2 y4 P metalink =
4 A3 R. A5 T4 Y! m* j9 Q minrate = 07 @, j& n3 A& E0 U# a- v3 F9 a  l
mirrorlist =
6 b$ c3 e% Q; ]' z; }. [  I mirrorlist_expire = 86400
) S. O2 i. K" i6 O* w; s name = Docker CE Edge - x86_64# o/ @1 \* `8 z' Z2 W; ~5 H& C
old_base_cache_dir = * r5 Q/ |2 t. w6 G- s' |
password =
2 R7 z9 E6 }& Y: p persistdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge
$ ?8 I5 v1 V8 _; V: v/ Q$ M pkgdir = /var/cache/yum/x86_64/7/docker-ce-edge/packages2 I% }2 N- {) ~+ _0 E5 u
proxy = False' `0 A2 P2 t7 L6 p" b$ b, E# N
proxy_dict =
: Y6 z+ I0 Y% `+ m5 G7 V) [ proxy_password = 5 {# E& m9 w( [5 U1 e" [
proxy_username =
; B, ^( C9 N4 K" M repo_gpgcheck = False
* m8 \2 W) m0 Q retries = 10* U, U' V4 B) y9 k% \5 s9 g* z
skip_if_unavailable = False
/ s6 u/ C( U' M7 h8 }7 O ssl_check_cert_permissions = True
2 w% L( u  v2 S) m" T0 Q) p* d) q sslcacert = 0 b3 X7 L0 C' C# `* x
sslclientcert =
, ?0 q; f: {2 v sslclientkey = / Y0 r) t! R7 o5 n
sslverify = True! h; A* P4 U8 a2 C. J  T
throttle = 0
9 @+ b1 W( n5 l, O- A  \( P4 ` timeout = 30.03 S! N6 }5 W. f! R. U
ui_id = docker-ce-edge/x86_642 O+ e9 }5 N5 ?8 S) j) E
ui_repoid_vars = releasever,
5 s9 N$ c- n, m7 Z    basearch
9 e) Y! [- [6 f2 S# I6 R username = * G! u9 y1 o, @. P0 k

9 V/ q" G) h! H/ J& o; J # yum-config-manager --enable docker-ce-test
7 G" n; Y4 E8 _8 i" h( |0 U Loaded plugins: fastestmirror% r) f2 l: `6 B7 A- h! [
================================================================================ repo: docker-ce-test ================================================================================+ O/ z: B: G# F9 s
[docker-ce-test]- Y+ f+ ]6 w8 H( S# X( x; e
async = True  i0 x; W" {' \$ O0 w
bandwidth = 0. ^; o4 k8 i6 f
base_persistdir = /var/lib/yum/repos/x86_64/7
  Q6 n: b) L0 e2 | 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], h- W. f5 x! ~+ t8 F; V
cache = 0
& l/ O, ?, ^, H$ r* z6 @ cachedir = /var/cache/yum/x86_64/7/docker-ce-test
% {) d" X! e5 F3 Z* w; D check_config_file_age = True
# H9 l7 a7 M) o* l( T* B compare_providers_priority = 80% `/ l7 Y# `# J3 n$ q
cost = 1000
  o& A% A) {$ R# g deltarpm_metadata_percentage = 100$ |! z& Z+ A6 H8 H1 Q* k1 R# x
deltarpm_percentage = # b" V1 M$ Z6 R3 n( L, p3 L8 {/ a
enabled = 1# V9 y& `! Q9 H  Y: D
enablegroups = True
# o3 ~0 P0 b# n- C$ P: @7 ` exclude =
7 t: y; p% i' T: ~ failovermethod = priority- _, f  V" }$ `0 j* Q
ftp_disable_epsv = False
% Q5 K" T* r- u9 J6 G5 O$ y" I gpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgcadir. q3 Q% d- q3 i% {, S" V8 G
gpgcakey =   f5 N$ L' f! D) N: T
gpgcheck = True
" y' `/ q+ c9 r9 y0 c9 H gpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgdir
5 h. E0 x: J3 p$ h# g; s gpgkey = [url=https://download.docker.com/linux/centos/gpg][color=#0066cc]https://download.docker.com/linux/centos/gpg[/color][/url]6 a7 T$ N. y+ g( \4 S
hdrdir = /var/cache/yum/x86_64/7/docker-ce-test/headers
4 e: v6 l3 V- o http_caching = all. B! d" l: {, |; }- k1 J; X( }8 C! L
includepkgs =
9 T1 h0 e! y( L: w ip_resolve = " V7 J% b1 G$ j; C0 Z4 t0 Y+ O
keepalive = True
* f) T8 ~0 m# n keepcache = False
+ o/ T, Y# c5 m mddownloadpolicy = sqlite, Z% |; y1 |( U- A! S
mdpolicy = group:small/ B% V1 m- {6 S. j; c
mediaid = * E' [% ^2 A' M! R: ~
metadata_expire = 21600
2 M% n! w) P$ R& h2 A5 y metadata_expire_filter = read-only:present# O) x) v8 h0 {8 G* w
metalink =
& H* a: \2 q6 {/ y5 G minrate = 0
( m) D8 R# ?$ Q; i- G. b mirrorlist =
1 \9 d4 I5 k+ W7 N. b1 [9 U mirrorlist_expire = 86400
3 {' E' [" R9 e, T7 u; w0 V name = Docker CE Test - x86_64/ p+ L( |) k% T, K" T
old_base_cache_dir =
' @; {: P* |, g" C1 {3 a; } password = 5 v/ @. R+ L2 Z  V( h+ l
persistdir = /var/lib/yum/repos/x86_64/7/docker-ce-test% i- z8 p$ U2 S
pkgdir = /var/cache/yum/x86_64/7/docker-ce-test/packages7 H# j! A$ y- W- u$ @
proxy = False
4 v2 _' U' K' W' Y+ C' f proxy_dict = ' \* c1 |# w8 z" k$ r9 A+ U
proxy_password = / T, g; o& d2 T: i# o  V- c( A% `
proxy_username = . n6 {3 L9 `' `0 F
repo_gpgcheck = False3 z7 |! u' g/ K( C, l( n0 g6 y" I
retries = 10+ \0 }# Z8 t& o1 @
skip_if_unavailable = False' R2 ^5 w1 p8 w9 y2 m
ssl_check_cert_permissions = True
$ h8 R) A5 g9 X# ?0 D: u' U( e sslcacert = - ?# Q5 O/ F" T. b
sslclientcert = 1 _5 ]7 P6 ]; Y5 S  ~. i" m# T
sslclientkey =
4 B' k% t- i! P- Z9 Q sslverify = True
+ ]6 k! }4 T4 `  h( u4 c" T9 r' O throttle = 0$ ^! B8 S5 e& ?% m- P7 y- b
timeout = 30.0
& X8 M+ S  H2 U3 d ui_id = docker-ce-test/x86_64
, v8 x6 R; }5 z6 R ui_repoid_vars = releasever,
  I! {( w  I! z8 u2 O0 }) R    basearch
" w9 H3 s6 V/ r% F username =
2 r+ w7 G: _/ h! ]+ d! U/ N) }
5 U( W2 z& c# ~3 z  `
5 g5 ?# h- {$ ~" N* @2 O/ |4 x; S$ w1 q% l7 x
安装相关包:   yum install -y yum-utils \
) e/ ~) r) p4 N" l9 |  device-mapper-persistent-data \! Z; w. L' q1 p/ R* h- D
  lvm2
& {! d# T+ v/ z
4 _8 P  K4 H6 Q1 p0 ]% Z) L0 K- T! L
配置yum的repo文件
. ~# a3 J' \+ W# R3 cyum-config-manager \9 Q+ J1 _8 p% ]4 f! N& L) l
    --add-repo \
/ M' n& j/ B, X% L3 d    [url=https://download.docker.com/linux/centos/docker-ce.repo]https://download.docker.com/linux/centos/docker-ce.repo[/url]7 ~/ ?" y8 A* M) t) w

" C/ \& I: B  E6 }yum install or yum update
& c1 G  u) P, [' K4 T4 x! {9 ?1 Q( g
安装docker-ce6 p7 l. y' a! O# `7 T% ^
yum -y install docker-ce
, ~9 v/ q# ~$ ^0 ^: e" {1 o+ [
5 D0 j5 M3 }" t0 A0 r0 z8 p" S6 A" t4 h/ K: V  b5 J, _$ g* B/ ^

  g8 ]# S% e; e8 f4 W

点评

  发表于 2018-11-29 15:08
 楼主| 发表于 2018-6-21 13:15:51 | 显示全部楼层
yum-config-manager --enable docker-ce-edge   测试验证yum源状态和信息: U1 X5 R2 p- v! C  ~
yum-config-manager --enable docker-ce-edge. U$ Y8 `1 ]4 @7 \# K
Loaded plugins: fastestmirror7 [2 C1 ^1 S# i8 _9 Q7 C$ d
================================================================================ repo: docker-ce-edge ================================================================================
3 o1 ~7 U1 b3 v; f[docker-ce-edge]  b1 y8 T0 j! g) g7 ?
async = True
  H) R! z) j, Mbandwidth = 0
6 f  M; ]0 y7 F+ i0 I8 g5 z, nbase_persistdir = /var/lib/yum/repos/x86_64/7- m0 q/ R: |4 K6 E% o2 ~4 {
baseurl = [url=https://download.docker.com/linux/centos/7/x86_64/edge]https://download.docker.com/linux/centos/7/x86_64/edge[/url]# ?. q" J7 F" x# d
cache = 0
( v& w. I; i+ Z; w) L8 ~& y( ~cachedir = /var/cache/yum/x86_64/7/docker-ce-edge
7 u9 E" h4 k. mcheck_config_file_age = True
' Z0 B6 Q) T# j% ^+ ycompare_providers_priority = 80
  u5 s- P' T0 D9 M; L0 A5 C" Kcost = 10006 D. X. n4 N9 i4 H
deltarpm_metadata_percentage = 1007 h# j, }: H9 B" p
deltarpm_percentage = + X& m- N, n, O0 I
enabled = 1
2 a& \! S! Z% M1 i- genablegroups = True
. Z& N! x: J6 l/ w; I0 x: @( [exclude = ) y6 v- [- m8 R2 i5 b
failovermethod = priority
# ~$ ^7 ^3 b1 w3 r. |# M( @4 b, J- {ftp_disable_epsv = False
) c  M; s  o( B( t4 g. ]+ v+ ogpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgcadir
* `' Z/ Z- J1 K5 @gpgcakey =
& \# y/ k4 e* Z2 o, S2 qgpgcheck = True
5 w7 ~4 N  `# h5 _; \) I6 dgpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgdir
: ^$ y3 {9 e) x6 d; n0 E4 g7 Mgpgkey = [url=https://download.docker.com/linux/centos/gpg]https://download.docker.com/linux/centos/gpg[/url]
% B3 I/ n! E2 N% s& Bhdrdir = /var/cache/yum/x86_64/7/docker-ce-edge/headers) }8 u6 \1 E1 N) \
http_caching = all
5 w: }, z. e* ?. hincludepkgs = ' l/ A$ a9 v, I  g7 s; ~4 {: ]# U9 J, x
ip_resolve =
" s+ L" Z' i# Q" F* K* t& kkeepalive = True
. i: {7 q0 {7 W6 P" W& M2 @/ |keepcache = False
  T# i) E4 Q; I# pmddownloadpolicy = sqlite# V9 G2 p4 `2 b  n! {! J
mdpolicy = group:small
5 h, O1 w0 S. y# a, [: q8 W4 [mediaid =
* R# r! m5 Q' ?& Q' U7 Ymetadata_expire = 21600! m5 Q" ]2 A2 A
metadata_expire_filter = read-only:present
7 v3 H; b5 r8 `9 S5 W% I7 u' hmetalink = " }2 K7 l% y# @  S. D
minrate = 05 u$ H% E1 C0 R5 H
mirrorlist =
+ _& J( J/ `9 T" @4 I  jmirrorlist_expire = 86400( l# K1 H7 i9 S- r; _6 s
name = Docker CE Edge - x86_64/ |- j5 n9 `! w% n3 O* h! J
old_base_cache_dir = " Q6 {2 f' b0 F
password = ( ?! l+ \0 W: t* F
persistdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge
) P5 m, I0 A- _1 A  rpkgdir = /var/cache/yum/x86_64/7/docker-ce-edge/packages9 o+ ]+ F% E* f/ h4 n' e7 l7 |+ F9 d
proxy = False) F8 W9 R7 W' Z/ t! h
proxy_dict =
2 ]5 n8 U9 H, p% M' U6 `/ [" ~: bproxy_password = $ M4 h* m/ ~; ~! d/ P
proxy_username =
; l, I7 r1 E6 j- e' M7 brepo_gpgcheck = False
; L" Q: J3 o6 @; @retries = 10, {# ~, z  c; O
skip_if_unavailable = False
" F! T9 H$ s( W: w( D' u, r) A6 k3 N0 Bssl_check_cert_permissions = True/ \* r/ l8 E+ s
sslcacert =
0 x% E+ H8 P$ p/ N8 C; D2 N% M* xsslclientcert = 7 G, G" g1 r' n! K! Z
sslclientkey = % Y: Q; d$ Y2 r0 I% [
sslverify = True- ~: c; |  j2 t  N* a) c) M. `
throttle = 03 M3 j, z/ d7 a% g. o
timeout = 30.01 W) e# W; \. L
ui_id = docker-ce-edge/x86_64
2 J# e  q; e# q7 Q; T" Fui_repoid_vars = releasever," k& d4 e$ q7 j- |9 i
   basearch* D& I' M! d+ J) {
username = ! n* T3 E$ O  _8 Q# r

& T6 L( b1 U6 J- r" V- z3 [6 s# yum-config-manager --enable docker-ce-test8 ~$ W! k0 [" I4 i# i+ r( W' g
Loaded plugins: fastestmirror
9 ~5 \  a3 G) P& w$ _+ E================================================================================ repo: docker-ce-test ================================================================================
7 ]6 k/ C4 n! [[docker-ce-test]
* ]6 ?* r) k' C3 l" u1 @" {5 O  `async = True
! m8 |3 |# x  S+ X  U, Fbandwidth = 0, C+ e% ]3 I# C, x5 _
base_persistdir = /var/lib/yum/repos/x86_64/7
+ |4 k, z7 P3 {3 H0 nbaseurl = [url]https://download.docker.com/linux/centos/7/x86_64/test[/url]
3 D) b6 \' C7 |cache = 0
3 D/ c! A6 C: Jcachedir = /var/cache/yum/x86_64/7/docker-ce-test
# `9 o3 G5 @+ P# w. b7 |check_config_file_age = True, ~  F5 L- v7 B
compare_providers_priority = 80
3 _  }5 f$ M* O8 xcost = 1000
' d/ x8 c6 e5 Z  o3 q; b* ~deltarpm_metadata_percentage = 100# e5 }& t% \% {% c- h
deltarpm_percentage =
+ A. w/ ^& o8 l+ e9 z! genabled = 1
9 U2 V% ]5 N: E/ D/ b/ Genablegroups = True
9 k# P) b, |( Q, {- Cexclude = + m" z! |: J# K' @7 G* I3 h: @
failovermethod = priority
7 a$ E1 m* S' h! ^* w3 J5 Y- [ftp_disable_epsv = False
% F0 H' s) Y- p8 f3 \5 Vgpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgcadir) Q; F0 x+ R3 n+ {  F
gpgcakey = + G+ Z2 s3 A; Z% A9 V
gpgcheck = True
5 A$ U; @8 A4 [' Q# A, f1 hgpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgdir5 [7 M5 V( v* k/ d4 e
gpgkey = [url]https://download.docker.com/linux/centos/gpg[/url]
' A6 \0 L3 d/ E3 [9 Nhdrdir = /var/cache/yum/x86_64/7/docker-ce-test/headers
  W9 n4 e) k0 O9 m2 Mhttp_caching = all
! h8 t. y, {$ r+ U) u# i, R/ O- rincludepkgs =
' z5 y: w( e9 A, q& I) rip_resolve =
* b. Z9 r+ V! skeepalive = True; [! W! @$ c' i6 }
keepcache = False
3 M2 x+ f! z3 \0 t) }  @5 l) imddownloadpolicy = sqlite& }9 |6 [/ C4 v3 P9 E
mdpolicy = group:small
; K: X& R" \; Dmediaid = 7 ~8 b# H6 ?7 J8 y8 O9 K
metadata_expire = 216000 T# N6 r, f6 v, I& V
metadata_expire_filter = read-only:present+ \7 @9 _  A( M4 N# U# d3 R
metalink =
4 }1 U( O/ k/ L" R2 W9 A) S+ Xminrate = 00 M, C; L7 u& H1 K! Y& ?$ f$ T2 o7 Z3 ]# S
mirrorlist = ! {: s& r% N7 W+ P, E2 B5 ~
mirrorlist_expire = 86400; ^# l! g8 E+ \  `
name = Docker CE Test - x86_64
# U0 s; x' W% w& I1 w( k* w8 Qold_base_cache_dir = ! I  E, B: e" z3 o# o/ {) }7 u% F
password = " ]3 C( x3 T: H. Y
persistdir = /var/lib/yum/repos/x86_64/7/docker-ce-test, h+ l: k/ _5 U4 _$ A" o7 T  [
pkgdir = /var/cache/yum/x86_64/7/docker-ce-test/packages
# P( C- s+ z% l- a. Sproxy = False
! D5 ?/ Y1 r$ f8 k2 eproxy_dict =
7 D' e  F$ Y$ U9 M2 Mproxy_password = ) g$ ^" I. x; i4 l' C
proxy_username = 8 G) P9 m* o# H/ t/ }$ U" @( ~6 m$ x, H
repo_gpgcheck = False
( `+ y+ H& j2 A/ f$ _retries = 105 @& N. b2 h( ~! v2 @+ V
skip_if_unavailable = False. C1 ^. N8 w5 H/ g* h; w
ssl_check_cert_permissions = True
3 _! T3 h% _# c, {1 wsslcacert =
( y$ r; O, X% |( b2 Hsslclientcert =
! E& H  a5 y2 s. Q3 Z2 g, ^sslclientkey =
* |0 s; E- F# k+ Zsslverify = True' m- p8 ^, R" F- U8 H9 x& u
throttle = 04 N; H6 D( C6 r6 b
timeout = 30.0
6 ~7 A0 V7 z+ U7 _2 Aui_id = docker-ce-test/x86_64
/ e* e1 e1 s5 F9 q+ lui_repoid_vars = releasever,2 P- S9 z# L- U4 s
   basearch
. S( @& l, E! M: h; Q; ]% g2 Susername =
/ h# O9 J1 ?" k# N' U2 A6 w6 ^" _+ a$ Q( y' m! f* |& @
发表于 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
& n8 x6 U0 N: T8 a$ O启动docker.service服务。- ]6 y. n2 d3 B& j  Y1 O9 h" I
 楼主| 发表于 2018-12-9 09:51:15 | 显示全部楼层
yum list docker-ce --showduplicates | sort -r    查看yum源中docker-ce的安装包7 p: B+ C7 z2 ~7 m5 ?" s9 o

/ S# f+ B& W+ U( d5 P" Q4 Q4 m2 V8 Pcurl -fsSL get.docker.com -o get-docker.sh    获取docker 相关脚本。. Z+ O# H% L3 A5 v

" a. X5 F+ ^# T% A+ |* u- a" @% wsystemctl start docker.service( |* o2 ]& s5 o- ]% E1 @
启动docker.service服务。
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

如有购买积分卡请联系497906712

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

GMT+8, 2020-3-30 08:22 , Processed in 0.065371 second(s), 25 queries .

Powered by 龙睿 bbs168x X3.2

© 2001-2020 Comsenz Inc.

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