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

易陆发现论坛

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

CentOS 7 安装docker环境

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

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

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

x
Centos7安装docker: q" [0 A+ @. n) |* a; d
     各个操作系统的安装可以访问:' M" E; D+ Z" h" r
     [url=https://docs.docker.com/engine/installation]https://docs.docker.com/engine/installation[/url]4 F# v6 i6 _. V: @( |  ~
docker分为开源的免费的CE版本和收费的EE版本:
$ V, p3 ?5 _$ q- z. I8 V7 P 以下实验环境,采用在centos7.2操作系统上安装,使用docker版本为Docker CE版本:
+ B# P5 @2 G: V! @/ h! r配置docker的yum源& [4 W% {; H9 x, W. {4 m, n
yum remove docker \) l2 V6 P* n' O! M! D
                  docker-client \9 T" }9 K. G+ _3 N5 e/ M- u
                  docker-client-latest \: a0 F, Q; y7 m  P3 j
                  docker-common \& B+ L+ F% n5 V
                  docker-latest \
7 H* E! U" Q# j* V9 r" T( r                  docker-latest-logrotate \7 `/ h2 h/ c7 ]! ~: h0 g' u
                  docker-logrotate \0 Q: r! g; g9 u1 C9 D
                  docker-selinux \
5 h  I6 P( ?( r                  docker-engine-selinux \" ?5 `( `# k; Y9 X5 s# r
                  docker-engine: n6 z' I9 I6 w4 y; d
0 N) R+ P$ o3 [6 r- @% |

2 S! F1 `8 x1 ]4 Y9 n3 B! Myum-config-manager --enable docker-ce-edge   测试验证yum源状态和信息' W, t7 k- ?9 M4 A$ K$ |
yum-config-manager --enable docker-ce-edge4 E7 w/ O9 U- w6 Q2 W  J# T
Loaded plugins: fastestmirror+ V7 @. k; \! c3 _  o
================================================================================ repo: docker-ce-edge ================================================================================
4 x  y  h) h6 H6 {" A [docker-ce-edge]9 u1 x7 ]! y$ n
async = True* b; g) G% h0 d: n  z9 y1 M% E4 x
bandwidth = 0% I$ d& L' @( s( T+ p" A
base_persistdir = /var/lib/yum/repos/x86_64/7: d$ Q* A5 u' @, ^/ }. n$ v
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]
+ ]6 e( a  e' o% } cache = 0: ~( H" p8 o$ Q8 n2 Z+ _
cachedir = /var/cache/yum/x86_64/7/docker-ce-edge
8 l7 j/ U4 q+ ~4 S0 V6 k8 x check_config_file_age = True% n  j, V/ }" |/ P
compare_providers_priority = 80
2 G6 l1 ]- x' x* Y! d! H7 N8 b! @' p/ U cost = 10006 ~# l5 a7 \3 u8 B6 ~
deltarpm_metadata_percentage = 1004 o6 N1 I6 M# ]( Y! f) \- z
deltarpm_percentage = " J3 J, h! i3 i% W
enabled = 1' D  L+ _! R  x/ F  [2 s
enablegroups = True) l8 Q; S, Y: A1 w; u7 j) g4 r% J2 z
exclude =
1 G' ^; |( B& L4 B failovermethod = priority; i9 J6 h) K1 n9 m
ftp_disable_epsv = False
. G1 @. D; @. S7 M gpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgcadir
2 w2 z; v0 ?9 T5 i* {2 ?/ R; u. G gpgcakey = 2 e. {! @* \3 {0 w8 P! a
gpgcheck = True  L0 S8 ~, k# U- U1 v- a& p0 s
gpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgdir/ p- Y7 n/ B) i( E
gpgkey = [url=https://download.docker.com/linux/centos/gpg][color=#0066cc]https://download.docker.com/linux/centos/gpg[/color][/url]
, K; U9 Z+ s; H* w$ \# ] hdrdir = /var/cache/yum/x86_64/7/docker-ce-edge/headers5 ]) `  z% ]4 ]
http_caching = all
+ R9 ~0 [9 K, r- R includepkgs =
# X; M/ V' `& ~3 s! i- T+ k4 r+ e) R ip_resolve = 5 C2 ]& y$ W5 s
keepalive = True+ J$ |! Y$ i1 \. C# {% b- U
keepcache = False1 Y6 k0 E- Y# z5 D" d/ [# t7 L3 @
mddownloadpolicy = sqlite
! ^9 i4 `) m* C  a& ~- ~ mdpolicy = group:small. X  a  S& \7 K9 ^7 W
mediaid = 0 z5 g/ ^9 K. g8 Z
metadata_expire = 21600# K4 \/ z2 K+ V: \
metadata_expire_filter = read-only:present
( n7 h' {0 p. @. a5 L( p4 S1 i1 [ metalink = , ^" M) o( A, x
minrate = 0! M; @7 K1 _, x1 |! b4 i
mirrorlist =
" ?: z" B6 B8 u3 ^9 ? mirrorlist_expire = 864009 j# [" D( t" r
name = Docker CE Edge - x86_64. q1 h' S" @3 g9 [0 m
old_base_cache_dir =
- z0 N  l; ^+ ^7 V! T1 b2 u8 n password = / j' C  I1 o1 p6 K  b! _
persistdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge
& `: A! t) _& f9 C& t) o  V& M pkgdir = /var/cache/yum/x86_64/7/docker-ce-edge/packages
5 L( t6 W2 p" u; m* C) A proxy = False( q8 N' R( ]5 O; n
proxy_dict =
9 F# t8 F! x5 y proxy_password = * G9 p8 }$ z& N6 v5 t
proxy_username =
- H3 U8 ?' z$ ?6 B repo_gpgcheck = False) p# P7 Z3 k5 ^: u' }! {
retries = 10) X7 @% K) N, |4 @8 f7 H1 _
skip_if_unavailable = False- n! |" @; B( e  |! ^6 Y& r+ [
ssl_check_cert_permissions = True. i2 |! z9 Z  H' J
sslcacert =
8 T. |$ O* ^+ K9 O, G$ X$ ], T sslclientcert = 3 n" B0 W, b! A2 M9 w
sslclientkey = 5 U! ?& N: V2 {( z% D3 }; ]
sslverify = True1 k& H9 A: ^8 H. `' l
throttle = 0
/ X. G! `: M2 N2 j! e& v timeout = 30.0- }# d$ L2 ~  F/ h
ui_id = docker-ce-edge/x86_649 Q& {3 ^8 _' A( T/ C
ui_repoid_vars = releasever,4 \" F9 w: I% h6 }, d6 T( b' V
    basearch
9 y6 p6 c/ v2 \2 H# _( O, h username =
8 x% s' X, \8 e! ~
; e1 |$ ]0 l% t& p # yum-config-manager --enable docker-ce-test1 }# P/ h: e' o6 }$ u
Loaded plugins: fastestmirror
$ }+ z7 K* `* v! {  S4 ] ================================================================================ repo: docker-ce-test ================================================================================5 a" I& P- l$ o
[docker-ce-test]
8 v+ h3 _! J- s async = True, \4 @0 N0 {- F+ P; n8 s6 k
bandwidth = 02 i7 p3 F$ p$ {3 G  j% z
base_persistdir = /var/lib/yum/repos/x86_64/7( e3 c' P9 E' g1 n- Q2 ]2 P
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]
. z5 \( b; O. l. z cache = 0' m& p( M0 k5 x+ n
cachedir = /var/cache/yum/x86_64/7/docker-ce-test5 w& o# ]6 {+ {  \" Y1 ?, l2 F
check_config_file_age = True
. v+ V' B6 ~8 P( I4 V3 ?. ]4 `  V compare_providers_priority = 80' z0 @0 E+ ^5 g4 h' ?
cost = 10008 S) s/ x0 a* W4 f9 q8 [0 j
deltarpm_metadata_percentage = 100
4 ?7 u8 D1 J) T& v$ r( y0 v deltarpm_percentage =
+ w* S  @! e* C7 e( D1 n& ] enabled = 1; w; E9 K# q! l. B$ B
enablegroups = True
6 m! W( M! k# W+ I3 o$ w3 ~ exclude = ' }! y& I  t/ p
failovermethod = priority
6 H9 h* @+ a  U ftp_disable_epsv = False
; }8 r/ U4 l$ @! _; U8 j gpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgcadir
- M: U2 R; B/ t/ N6 Q$ i& n gpgcakey = 5 f/ P/ e( {. M
gpgcheck = True
. C0 i9 u- N; |$ L/ G- P gpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgdir! s! x" n( c2 B2 Z4 `5 L% ^3 k
gpgkey = [url=https://download.docker.com/linux/centos/gpg][color=#0066cc]https://download.docker.com/linux/centos/gpg[/color][/url]
+ Z6 Y3 ~1 T, ], h2 J. h. Q hdrdir = /var/cache/yum/x86_64/7/docker-ce-test/headers
1 W7 |  r% i# ? http_caching = all, ~) O6 G8 x9 O5 Y8 J; q) i
includepkgs =
! u% ?$ }  ^0 ?: o) x! g ip_resolve = 3 K$ R# q; U) u* j; K
keepalive = True
# M5 z8 _+ v- p" a+ l keepcache = False
( ?2 S  D7 a5 W- ?/ Z  N  l mddownloadpolicy = sqlite
) |: w3 q6 i' m! ^+ g! ? mdpolicy = group:small
+ y2 a; ~" B5 w* x- ]) Z mediaid = . m5 L, U" k4 X" I; C
metadata_expire = 21600
+ J" x" d. C+ [/ Z metadata_expire_filter = read-only:present, ^5 z- h, S3 T. o- A0 i0 l
metalink = 4 M. c2 v: z" ~! p6 ?
minrate = 04 Z$ q# g; l9 n$ l# J
mirrorlist =
( j4 w9 x: G2 L4 C7 x mirrorlist_expire = 86400
' Q' S& J) G  `7 W6 `7 q1 Y& | name = Docker CE Test - x86_64
; b) a( g7 L$ _, H  S$ i% k! t old_base_cache_dir =
; _( p, d% o( X  x password =
1 `* B2 E" H( l persistdir = /var/lib/yum/repos/x86_64/7/docker-ce-test" [4 R& ^* L4 @' J, e& R5 Z' T
pkgdir = /var/cache/yum/x86_64/7/docker-ce-test/packages3 }5 H+ f0 v6 e4 ^7 g
proxy = False% m# v* z, O, ~% k
proxy_dict =
; O4 Y, o$ J- t9 m# I- B0 d proxy_password = ' M4 M# n2 m" I+ f
proxy_username =
+ X; V. j6 D- n: p9 T" f repo_gpgcheck = False. h8 o9 n' p- f9 {) W2 l4 x
retries = 10
7 Q1 v* h) }+ T4 a. M* {, h skip_if_unavailable = False/ d. k; i2 z( k
ssl_check_cert_permissions = True" O4 u1 s" Y/ ^, R, o( C# |! d
sslcacert = - z3 P" B: j0 I1 U  f2 d1 I$ Y3 ^
sslclientcert =
! u& A6 V4 @2 N6 g& [) `, @8 k$ a sslclientkey = 5 c% g% U* n; q: t
sslverify = True
7 G# n" f  j6 d throttle = 0
' o* Z) k9 O* f( L" s timeout = 30.0
0 O- `9 P3 K2 X9 G8 X ui_id = docker-ce-test/x86_64: e+ e# P4 [6 o
ui_repoid_vars = releasever,% ~( {+ b2 g% ~" T
    basearch
  h- g6 u" q5 o& | username = ; o+ a7 g7 N5 z

# p7 w6 q5 E' O' {/ Y! `9 u8 \
* N$ Z3 ~; n5 A  a9 ?4 d9 [0 ]
安装相关包:   yum install -y yum-utils \
8 K) `) Q+ S" {$ v- ^* E: V# s  device-mapper-persistent-data \) ^3 p9 n* V6 F
  lvm2
# q9 q# T+ u' o+ `% R& O1 ?% J4 c( d* _1 u- G( O

; M/ a$ Q4 N. d) U配置yum的repo文件6 I/ Y, l* O+ d: S% o7 e9 c
yum-config-manager \, q7 t. q9 F0 r; Z' \" f4 K
    --add-repo \
% D/ J# J' ^1 F* \    [url=https://download.docker.com/linux/centos/docker-ce.repo]https://download.docker.com/linux/centos/docker-ce.repo[/url]
( s; g  l( |4 |* F7 X5 f
$ h+ L  Y( a) U' a* [9 w! [yum install or yum update
" n# t& N- B) Q" Y$ X+ [% Z( i# B+ O
安装docker-ce) C, f  g8 c5 S$ V4 Q4 U  F# `
yum -y install docker-ce1 t# C, M6 |7 \- |( Q
) \4 h. m5 I4 z
4 l: P$ C! Z* j6 e9 y% H
( b$ M; W5 o5 ~6 V6 g4 p

点评

  发表于 2018-11-29 15:08
 楼主| 发表于 2018-6-21 13:15:51 | 显示全部楼层
yum-config-manager --enable docker-ce-edge   测试验证yum源状态和信息: y) b8 Y  k  D
yum-config-manager --enable docker-ce-edge9 j2 m- @, _- f/ M/ V
Loaded plugins: fastestmirror
9 H7 t4 v+ d, u; x, n================================================================================ repo: docker-ce-edge ================================================================================6 {9 Q' s( C6 R
[docker-ce-edge]
' i. N+ |8 p5 |# Iasync = True
+ J2 z% N& d9 p: |# h  m$ C! fbandwidth = 0
/ I6 t! D3 @8 T8 Z7 kbase_persistdir = /var/lib/yum/repos/x86_64/7
( v5 X5 ~7 n0 @& ~6 zbaseurl = [url=https://download.docker.com/linux/centos/7/x86_64/edge]https://download.docker.com/linux/centos/7/x86_64/edge[/url]" h! P$ W1 J9 H8 `# l9 z* o1 }4 Q
cache = 0" O6 J9 b& d' a0 v5 h/ A- Y
cachedir = /var/cache/yum/x86_64/7/docker-ce-edge2 s6 G& A+ W( K3 L* A3 T* u
check_config_file_age = True: o& H7 M8 o" Y
compare_providers_priority = 80
9 ?/ n. Q$ q3 g* [6 Gcost = 10006 Q  s3 Q/ o& p7 D+ N8 y
deltarpm_metadata_percentage = 100
' |, T% [! \6 ^deltarpm_percentage = $ U. p+ n) v( s: x3 e
enabled = 14 q6 m2 l1 c& j/ g
enablegroups = True; H) A7 ~5 ^+ V; P" q
exclude = / k' O/ T  H+ a
failovermethod = priority
1 F/ ]/ V0 ]7 M% ]( dftp_disable_epsv = False
4 \( ?: h/ u& U$ Qgpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgcadir, v% B, J- I* Q& j/ i9 z& m/ q/ Z
gpgcakey = 6 o, B7 q7 ]8 {$ G/ F% Q
gpgcheck = True1 [  r6 s7 j6 S0 G6 O6 w
gpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgdir* B# }( x4 N+ b& T5 X; Z
gpgkey = [url=https://download.docker.com/linux/centos/gpg]https://download.docker.com/linux/centos/gpg[/url]! w2 t' f/ l& G
hdrdir = /var/cache/yum/x86_64/7/docker-ce-edge/headers
$ f) G# K) q' z! r$ {) z  p" z! Nhttp_caching = all
) H1 p4 N/ Q# i* p1 u+ z/ cincludepkgs = % S# Y: A2 _' k4 q
ip_resolve =
8 Y7 ?1 {5 L; ^, N9 _8 Y. L9 xkeepalive = True5 }) U: v# V/ r- F+ v
keepcache = False% a- M# l1 _3 K8 @3 m8 U. j& @5 J3 K! o& r
mddownloadpolicy = sqlite
1 D! G6 V3 e; imdpolicy = group:small
# D( _9 f( W. y9 tmediaid = 6 h" F2 [) T0 a
metadata_expire = 216003 Z* V3 y! G3 @, t' _& a" X, a
metadata_expire_filter = read-only:present
; a% o7 A" [8 v  J' k" Xmetalink =
& J2 ^$ }% H8 R3 {6 _0 f& d) I6 Wminrate = 0/ x3 y8 y7 E& X8 Z3 q1 @
mirrorlist = . p: M/ ~; z% r6 ^- X
mirrorlist_expire = 86400
, i6 s, J! p  ?% O  q0 C4 Uname = Docker CE Edge - x86_643 C2 Z. a  O5 @0 Q
old_base_cache_dir =
8 E5 `4 O3 ~4 [' b, @" N# v+ Hpassword = : Z6 U% w# j: Z
persistdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge
9 ^& Q. F; e% v7 X) Upkgdir = /var/cache/yum/x86_64/7/docker-ce-edge/packages' L  K3 E/ y7 s8 K- {. v
proxy = False5 \1 N* I2 g$ k) ^8 v% d" B
proxy_dict =
: P3 M8 p! H, u0 Wproxy_password =
% v% V0 T: y8 q: C# C$ g. Mproxy_username = + G9 l8 Q7 p; o/ l0 B7 E
repo_gpgcheck = False
4 U! [( G  F2 B4 `0 Z) a) O( ?retries = 10; n+ V3 I( ?: q0 H3 |5 s* r
skip_if_unavailable = False
2 A3 }7 B- L! [: X1 ?ssl_check_cert_permissions = True
0 V# m; w& M& L5 [$ b/ Tsslcacert =
# y4 |' L; {+ d/ x8 Zsslclientcert = 7 O) I$ T4 b5 x6 B7 N7 r
sslclientkey = # d1 }# ?2 I$ |% [0 B
sslverify = True& ~0 s9 Y  e0 N6 i7 C" D6 [
throttle = 0
" Z- w1 a9 \3 R$ u! N! ^7 K9 k* ktimeout = 30.0
6 J& U& y/ B: ]! d, ^ui_id = docker-ce-edge/x86_64
- E1 v7 W9 ^' A3 \ui_repoid_vars = releasever,- |( g9 H9 e/ ]  k
   basearch6 o  i0 p$ J/ F/ [
username =
: D# |$ g! M5 }
0 \  `+ H& F( ~' c1 B8 _# yum-config-manager --enable docker-ce-test/ |* A& R" j- A+ M. v
Loaded plugins: fastestmirror
$ c" a6 R$ \: z+ I" `6 V3 o================================================================================ repo: docker-ce-test ================================================================================/ R# y# r9 l7 }8 ?7 w/ l2 h% n$ e
[docker-ce-test]
! X4 y$ X7 e- r: s1 y/ L+ E1 Rasync = True) i+ x3 O3 }# Q
bandwidth = 0
  D1 W% H9 I# W1 L' u+ D; Y5 Z7 Ybase_persistdir = /var/lib/yum/repos/x86_64/7
' v3 C7 }$ R$ L! b- |baseurl = [url]https://download.docker.com/linux/centos/7/x86_64/test[/url]
0 n( q9 @* o% O. d% `cache = 0
2 {' Q' o; k0 B7 F6 `! a) Icachedir = /var/cache/yum/x86_64/7/docker-ce-test
) B/ L2 u* G& O0 q/ x' A8 Acheck_config_file_age = True
/ w( U3 K4 g3 L1 Y0 n" ycompare_providers_priority = 80
  G' j, T! t% {: Y. t; J" Tcost = 10000 H5 u3 y/ f. M" Z
deltarpm_metadata_percentage = 1000 Q8 I  R7 a2 {& i$ V, l, Q
deltarpm_percentage =
; N* y: }6 C/ D3 J, ]9 Oenabled = 1# R) P  S+ b- T  z, G2 v! V% j
enablegroups = True. V! Y- @0 H1 ^- n' m7 z/ a
exclude = 6 b( n4 B/ L) B2 A
failovermethod = priority
' s$ g. k" c1 t' N6 @ftp_disable_epsv = False
& v4 J9 c  z- ?2 q4 Z* fgpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgcadir( w# b* M% D5 N) @. o
gpgcakey = 0 y( Z/ N6 s0 P- K' O) o
gpgcheck = True
% R/ F/ @6 y' W+ l7 b5 r* e$ G9 ^# pgpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgdir
) t1 s, T, N& {8 M4 o* H; rgpgkey = [url]https://download.docker.com/linux/centos/gpg[/url]. U  K3 g! F7 K' F( \7 B  D8 p
hdrdir = /var/cache/yum/x86_64/7/docker-ce-test/headers
% n$ T1 o# u- fhttp_caching = all
- a6 H- m9 r, G) \# Wincludepkgs = / Y3 h! X6 C* x; O2 {8 D- X
ip_resolve =
( a4 O+ w7 [3 X6 V/ d& X' Gkeepalive = True
$ {7 q* ?2 T' k; r* l, j! x1 L( `/ Ikeepcache = False" Y/ ^5 C! T* R4 S
mddownloadpolicy = sqlite
7 l* n/ I3 F7 n5 o+ H2 Pmdpolicy = group:small3 Y1 t3 Q' U% |3 m; d
mediaid = . M8 J6 C* O7 V5 i
metadata_expire = 21600
: [. r" X# `! ~- `# x) m, \! xmetadata_expire_filter = read-only:present. F1 S% s; N2 T, g( ?3 a
metalink =
6 V! T7 B4 H; F! R+ dminrate = 02 g; s; o  z8 Y0 S1 l1 ?
mirrorlist = , u/ ?! V: w5 q0 n
mirrorlist_expire = 86400+ V4 ?" t7 Z0 |4 T4 R
name = Docker CE Test - x86_648 s' g$ W4 P4 o
old_base_cache_dir =
$ r2 L5 q/ _0 ]$ E3 ipassword =
0 Y1 T& N: M, u! P' Q0 {persistdir = /var/lib/yum/repos/x86_64/7/docker-ce-test
  Z8 g  G: U' ?7 O8 ~% B! kpkgdir = /var/cache/yum/x86_64/7/docker-ce-test/packages
9 b  ~/ O9 G9 ?+ a/ Q$ @3 Bproxy = False
+ H. E. I" F* t* N2 Fproxy_dict =
8 Q% |* b/ x( f# M0 xproxy_password =
6 ]5 D2 [. c  Y" V$ J& Cproxy_username = # P" G* a. r! ~. N
repo_gpgcheck = False
4 \" h( G& h. Q% j& nretries = 10
0 N2 n1 C, l0 E! ~  @/ Dskip_if_unavailable = False
; Q# C! v( e: b+ S# ^ssl_check_cert_permissions = True
, {5 K3 E+ }* H' W+ Vsslcacert =
6 o& t. J5 p3 Esslclientcert =
( L$ [2 B8 ^! ~7 e0 A& g( `sslclientkey =
* Q2 h4 r/ R& z6 _7 Hsslverify = True5 a8 F3 z$ e9 o( ^* j1 y
throttle = 0; n% A9 i% j' _& j' O: {; }
timeout = 30.0
4 Z3 @, U) }& ?3 ?" z1 l& Vui_id = docker-ce-test/x86_64& K3 |5 R8 I  f# b- X, ^
ui_repoid_vars = releasever,
" g8 E6 |& H  [# p) q   basearch
% s3 ^: w7 e$ f9 Uusername =
' @1 ^! |5 f: Q: |1 O8 a
& c$ r* c' @4 U0 B4 R2 l
发表于 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
7 `9 n3 ^1 r0 e# h$ }) p启动docker.service服务。3 c, s, G7 b7 G" F* G3 S$ q
 楼主| 发表于 2018-12-9 09:51:15 | 显示全部楼层
yum list docker-ce --showduplicates | sort -r    查看yum源中docker-ce的安装包1 N4 C% d2 w5 G/ Q# ^, P
$ u8 s* B; x- ?
curl -fsSL get.docker.com -o get-docker.sh    获取docker 相关脚本。
  a: v+ K! [3 Y$ |1 H6 \" v) n3 D/ \2 A- |" N# n
systemctl start docker.service7 U9 a, g" |. ~4 }$ T5 g
启动docker.service服务。
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

如有购买积分卡请联系497906712

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

GMT+8, 2020-10-27 03:31 , Processed in 0.071799 second(s), 24 queries .

Powered by 龙睿 bbs168x X3.2

© 2001-2020 Comsenz Inc.

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