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

易陆发现论坛

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

CentOS 7 安装docker环境

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

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

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

x
Centos7安装docker
7 r- w/ x* x! ~; h. X' q* i/ R" e     各个操作系统的安装可以访问:
' \" o, w0 p. B: d5 A( F     [url=https://docs.docker.com/engine/installation]https://docs.docker.com/engine/installation[/url]
3 y! z: E+ q1 ?8 _4 r( ^docker分为开源的免费的CE版本和收费的EE版本:
* v0 ]) ~) n) w. y 以下实验环境,采用在centos7.2操作系统上安装,使用docker版本为Docker CE版本:6 s( V& ~8 F' H( e1 A! @
配置docker的yum源
4 P3 d2 u" e2 Yyum remove docker \, I3 x) j5 i& w3 i1 }5 M% y7 }2 F
                  docker-client \6 K: v2 H1 H5 I
                  docker-client-latest \$ {* n# h* ~1 }7 z" A
                  docker-common \" x, d0 }; k& e; D1 Q9 ~( T
                  docker-latest \
. M: i+ r2 W" f$ m8 `                  docker-latest-logrotate \
3 Y& H" T7 q! Z9 _- p                  docker-logrotate \. m$ v7 M1 Z# S2 S2 E# k, e
                  docker-selinux \
. H. R6 k& e; W( v/ \! w                  docker-engine-selinux \
8 c" Y! J) x3 i* K                  docker-engine
: w$ d8 n: j  E9 q; @4 `5 N/ b' v8 M% s2 c

" j; Y7 x, Q9 x) H" hyum-config-manager --enable docker-ce-edge   测试验证yum源状态和信息
( q. T) n- L% }: pyum-config-manager --enable docker-ce-edge
4 ?4 G- }/ N, g' G3 _* k Loaded plugins: fastestmirror2 B5 ~; |0 v5 l0 A$ L% Q
================================================================================ repo: docker-ce-edge ================================================================================
: j" o1 i) h( z [docker-ce-edge]
2 a& M  }/ I$ H" R4 z: R) J/ E async = True; E2 N! H$ x' d1 R" q
bandwidth = 0
1 O  q+ ^2 l. Q# ]# ^0 Z6 _% X' @ base_persistdir = /var/lib/yum/repos/x86_64/75 K9 K2 l$ l. I1 i: S
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]
0 |% l5 i9 K6 b6 a$ P cache = 0
% i9 K- O+ g. e: c  D cachedir = /var/cache/yum/x86_64/7/docker-ce-edge
) J) e7 t3 c7 n3 ] check_config_file_age = True
( h# N# D9 F$ F  G0 Y compare_providers_priority = 804 y' u8 ^8 t1 B( k# ^, N) }
cost = 1000
+ |8 i4 w$ d6 Z/ w8 M deltarpm_metadata_percentage = 100, J& A/ u: N: X& _$ \% i9 S2 |9 ]
deltarpm_percentage =
9 i9 x4 z4 Z  N enabled = 1
: K7 v7 @% b4 }. H, r6 U/ N( d enablegroups = True
9 J) w+ V  F4 n& P8 d7 I% P exclude = ! w- a& k! Z0 g, m
failovermethod = priority
- l! O/ N; v$ a% R ftp_disable_epsv = False
6 b. `! o# S* Y' ~& E- ^1 L gpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgcadir
/ w& ~3 l2 J- U2 u, R' y! i; A gpgcakey =
; A: w1 k& {$ {" L1 u gpgcheck = True/ ]& W. `/ Y/ J
gpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgdir
2 P. N7 D6 @- g! O gpgkey = [url=https://download.docker.com/linux/centos/gpg][color=#0066cc]https://download.docker.com/linux/centos/gpg[/color][/url]
: A+ g8 y- }0 h3 T+ x$ Y hdrdir = /var/cache/yum/x86_64/7/docker-ce-edge/headers# v+ X; K" ?% [2 j7 O
http_caching = all, p. `" D, a# H8 _
includepkgs =
: X+ s/ q' U1 @" o9 L: T1 M ip_resolve =
! Z) B' W( ~% J keepalive = True
& S5 J: Q" c9 c! s3 W5 D' ^* l7 Q keepcache = False% J1 C0 L% I. l9 t: `
mddownloadpolicy = sqlite3 y4 a& X5 J! ~' H7 J* U/ x
mdpolicy = group:small
. V+ D/ g2 u! r" r! k mediaid =
: y8 N. y9 h! u metadata_expire = 21600
# f0 y" {' @4 E; N5 i" N metadata_expire_filter = read-only:present7 I+ s$ {  l/ x$ R- E
metalink =
. E/ p+ p6 ~% H' s4 Q0 G minrate = 0, R0 F9 ?% i# a
mirrorlist = 2 r# p: A. o1 L
mirrorlist_expire = 86400
, Y  h. ^& i9 @ name = Docker CE Edge - x86_64
8 w, c, T8 d3 m: f* S: }+ e; w% Y  `9 s old_base_cache_dir =
6 f. p9 V8 g* t2 D+ s password =
# b6 E$ w3 [8 `% d5 O5 {, ? persistdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge
. O# T, U! Q# i6 P. U2 v( U pkgdir = /var/cache/yum/x86_64/7/docker-ce-edge/packages9 l- n  R" }4 s$ {/ A0 b6 S
proxy = False
0 k- A" H1 Z+ B. S9 |) C0 s proxy_dict = * x2 V& V( l; {/ U/ s- `. |
proxy_password = # y" S7 ]4 ?3 Q+ \  }- g5 o
proxy_username = ; K& ^) z& a8 y" N/ s3 }- J) C7 T
repo_gpgcheck = False$ \- b  u) f4 e9 ^
retries = 103 g1 c  L, c1 N3 Y: y1 H" K  g
skip_if_unavailable = False( F5 G( Y) f4 S
ssl_check_cert_permissions = True
/ g" R+ A( w, @1 B1 H  W* F sslcacert = * l8 `* X0 T0 s/ ]8 l  L( L
sslclientcert =
4 C0 R& |/ _7 B: D8 G. `) n7 J* J sslclientkey = 6 R( E, |; L; q5 o- ~! y9 Z$ a
sslverify = True9 G5 n& j+ a8 Y+ Z! @; j# R
throttle = 0
0 d7 b& x1 C% H) s5 Y: [# V timeout = 30.0
# C8 @: O* n# r. B, f5 Z ui_id = docker-ce-edge/x86_64
* W$ ~4 |! ]/ z& u6 E' p ui_repoid_vars = releasever,& `1 d+ h6 D7 u8 ^5 P4 {5 a
    basearch
7 G: j$ p3 O( \5 @4 M  O8 Z username = " E7 v) ]0 K8 D& d; N! b. @
. Y, {) I$ e) O# }7 N
# yum-config-manager --enable docker-ce-test
* F* I) j& U6 X4 P( A( ^" G! R Loaded plugins: fastestmirror
& }4 {7 g; @4 ~# P8 m4 k' i ================================================================================ repo: docker-ce-test ================================================================================
4 z4 F$ j0 r5 i9 P8 k [docker-ce-test]) `8 j% z; m3 C% c0 I
async = True
0 E/ x" b: ?' H4 V8 d bandwidth = 0
+ o+ }! Y$ T* J1 @6 E base_persistdir = /var/lib/yum/repos/x86_64/7, I9 n& c* n- |2 f* T
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]
5 ?% V. ~: d$ n# A cache = 0* ], N, y. W8 A3 ]
cachedir = /var/cache/yum/x86_64/7/docker-ce-test3 t1 e1 n5 g) b9 D% Q- D" M! F* h6 }
check_config_file_age = True( r- T' q5 |! C7 E) V) O+ c5 Q& e( w1 \
compare_providers_priority = 80
! X5 [7 [( s" l0 M" l) v# x8 ]) O$ _& v! X cost = 10002 h8 l; r* V8 C; c4 S
deltarpm_metadata_percentage = 100
, O+ b2 h. c3 O/ m- x" h9 A deltarpm_percentage =
. \: H+ V+ o# k5 }6 W enabled = 1
$ W% k7 R! k/ x' D; b" ] enablegroups = True3 f1 o$ s- u  ~7 w. n
exclude =
% \2 L! Q$ ?. { failovermethod = priority
* A0 D! h7 ~" K9 Z6 W ftp_disable_epsv = False2 g4 z2 _( u, A* B6 [! U& y
gpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgcadir% _) G% P$ {; I$ J# B
gpgcakey = # T$ ~+ d( |+ m8 y
gpgcheck = True4 z. W* @+ w( x
gpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgdir
$ C) D5 G3 ~; L gpgkey = [url=https://download.docker.com/linux/centos/gpg][color=#0066cc]https://download.docker.com/linux/centos/gpg[/color][/url]
4 C) `+ ^, g+ W7 @3 O, a$ ^8 d* B7 ]( g hdrdir = /var/cache/yum/x86_64/7/docker-ce-test/headers
- d# h. C+ M/ ~) O http_caching = all, c# G7 R7 Y/ T+ D
includepkgs = 5 D: B+ M) I+ @0 p6 k, C! |' r. B
ip_resolve = 2 @+ {* T. S( V1 j  `
keepalive = True
6 u! k9 K0 Q" _; v' A keepcache = False
& j# ^2 V0 r$ l# f! Y mddownloadpolicy = sqlite$ w7 ^+ ^  y- M/ W1 a
mdpolicy = group:small
- b, |, P  }0 J$ s5 g- F' X4 @ mediaid =
- y8 z" P4 c6 E7 b: L4 t. e( j metadata_expire = 21600
* E4 e7 Y4 V! i. p0 B metadata_expire_filter = read-only:present
  J7 d' I7 L" G. k/ S) D metalink =
9 z7 [; h4 L( \, z/ q! q minrate = 02 L* o$ X. H' \& j- ]
mirrorlist = ) u8 w- w- [, k8 A+ K
mirrorlist_expire = 86400* u( ?! ?8 G  C; q  F/ D
name = Docker CE Test - x86_64
1 a' T9 l( k+ n  B4 g$ O7 Q old_base_cache_dir = + j* l3 f7 M5 ~  V
password =
7 g4 b( J. {# b# C9 _5 T7 O persistdir = /var/lib/yum/repos/x86_64/7/docker-ce-test# z) x: G* u* j9 U! w3 W2 M
pkgdir = /var/cache/yum/x86_64/7/docker-ce-test/packages4 z$ [9 Y) l* u' D4 g/ i
proxy = False( f3 q& G! j9 P8 X8 l7 Z& }2 o( z
proxy_dict = 9 R* @0 b0 u' W
proxy_password =   v& L5 p+ U0 ?' t, H. J% g8 ?
proxy_username = ( [9 w' i5 v7 J9 N8 v! {
repo_gpgcheck = False+ Z/ j. U) k0 b* A' m* q
retries = 10- |2 r6 E, K! d+ [6 y4 q$ `
skip_if_unavailable = False
. L* T8 [8 T# Z ssl_check_cert_permissions = True
2 \: ?1 I' A8 y9 y sslcacert =
. l; F/ S" f% R1 w  z- ? sslclientcert =
6 H$ l' S6 p" c$ o sslclientkey =
& N0 C7 s" p; h5 i sslverify = True
3 V: o- C6 o1 z/ l- }7 e7 w throttle = 0  s$ c' b# N/ y4 C8 w
timeout = 30.0
5 l# B" i: ?# |1 t0 t: T% i) K ui_id = docker-ce-test/x86_64
  A9 n8 j$ F. u' \% ^' {$ c! { ui_repoid_vars = releasever,
$ N$ U7 C, m( c    basearch
# O; M8 f1 W3 h* k( {# Y username =
, m" q6 x0 q- f  j6 R* z: f: `6 ?) F4 }6 _
0 {+ z, h+ i) ~2 u- E1 j- S) F

  z, g0 k1 e8 o2 o6 J0 K  l# }安装相关包:   yum install -y yum-utils \
7 B, P  b2 C) Z. E0 H) c  device-mapper-persistent-data \( ~, v2 D. M6 H
  lvm2
- ?; r% f  W" c2 G$ ]* e& p. t1 }8 S1 g  U

* A: l3 ?! L3 z3 c4 r配置yum的repo文件
' a' E- Z/ a% M: j9 e+ O2 Ryum-config-manager \
% n1 f7 L6 h( o; C+ Y+ d    --add-repo \
# ~. g. i1 b& _& b7 Q& ]) Z) u. [7 d    [url=https://download.docker.com/linux/centos/docker-ce.repo]https://download.docker.com/linux/centos/docker-ce.repo[/url]+ ?; J) e* M8 `. f+ S' C0 d
) M# T" B3 D; }% k  J
yum install or yum update
, _6 D- V2 i5 W% b. B% H9 w0 z; ]- C+ ~
安装docker-ce4 G& P8 [0 u1 `9 M0 b
yum -y install docker-ce3 L+ ]) e9 H( h, A4 T- n
) v2 S5 H" W- Q1 z; w
3 m: g9 }+ t' p, B: |  v- j

0 t/ h3 [% b# P$ i3 o% R

点评

  发表于 2018-11-29 15:08
 楼主| 发表于 2018-6-21 13:15:51 | 显示全部楼层
yum-config-manager --enable docker-ce-edge   测试验证yum源状态和信息* u+ \9 S& E: p% f  u
yum-config-manager --enable docker-ce-edge! u* W1 y" s( K( t% s& W
Loaded plugins: fastestmirror
7 ~) {, L# b* P& x+ t================================================================================ repo: docker-ce-edge ================================================================================4 {' ?. b6 B. s1 V& m8 X& j( Q
[docker-ce-edge]
; W3 f( J1 S0 I2 Z1 c/ J+ S0 p5 fasync = True' h, e, P" e  _+ ~3 ]; Y
bandwidth = 0
8 A1 T5 B1 h9 ]) M5 [base_persistdir = /var/lib/yum/repos/x86_64/72 j& x# l. w, C7 Y4 X! y
baseurl = [url=https://download.docker.com/linux/centos/7/x86_64/edge]https://download.docker.com/linux/centos/7/x86_64/edge[/url]
$ u6 i/ b: s3 T& S0 Wcache = 0
% {/ n; Q) F: l. acachedir = /var/cache/yum/x86_64/7/docker-ce-edge
" k( i& P" ^8 U. p# U1 H2 d: ^0 Vcheck_config_file_age = True
* ~% H+ a- J/ ~. S4 v. m- Ucompare_providers_priority = 803 `0 h( H! }! Q9 C. x) o
cost = 1000
0 f! x) N# b* V: ^' C% Z6 B- _  pdeltarpm_metadata_percentage = 100
0 m% S, {5 D% m! A8 _8 j" J/ H/ @deltarpm_percentage =
9 v4 w* W0 H4 k( s" uenabled = 1( M$ O; x  I+ ^' ]
enablegroups = True9 ]- H1 x4 H& V; g2 Q8 Q  `+ I
exclude =
# v# m2 O0 {! ~4 Q1 _% {failovermethod = priority$ M1 N  q7 q; Z: A
ftp_disable_epsv = False
; J$ s. |/ }& Zgpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgcadir
) y' l& I. I* a6 J6 z8 v: vgpgcakey =
, b/ W# M4 B$ n  z/ G) U0 Q# `/ J8 Bgpgcheck = True. s+ m# c+ o, Z4 f; V& z0 _6 b- ?
gpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgdir
9 G6 q9 H5 E: N9 E( vgpgkey = [url=https://download.docker.com/linux/centos/gpg]https://download.docker.com/linux/centos/gpg[/url]4 W; q( Y( }3 P0 b( N! I
hdrdir = /var/cache/yum/x86_64/7/docker-ce-edge/headers9 P$ o1 C2 Q" h7 b) Q9 ]( n: r& D7 k
http_caching = all$ @) [6 d9 h8 n$ M
includepkgs = # i! v/ Q5 n# o% q9 p
ip_resolve = 0 a% {, v7 g- b0 `8 g" D( |
keepalive = True
9 Z  Z9 L& A$ G& W/ n. F6 lkeepcache = False
3 W9 K: c+ _. S& Omddownloadpolicy = sqlite
# w' F4 R1 L3 b8 v, J! |mdpolicy = group:small; K9 }$ `) ~$ s
mediaid = / O! ^' R0 u& E. G0 j
metadata_expire = 216009 U. n+ q' n" ?0 D* F) G
metadata_expire_filter = read-only:present7 i: J/ m+ s9 I7 Y6 Y9 c
metalink = ! D! q+ ^( H; F
minrate = 0
9 @3 E  h+ q  _2 t1 w3 E* K0 x1 @mirrorlist = 7 X- r* O( T9 f8 m. A
mirrorlist_expire = 86400/ q! V+ v% b! y
name = Docker CE Edge - x86_64% [# H  x$ C, ^6 P3 O, C
old_base_cache_dir = 7 E5 o- I8 O/ j& P1 ?
password =
) p) k. n9 k0 N9 [* Jpersistdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge: r9 p5 ~4 g  g) }
pkgdir = /var/cache/yum/x86_64/7/docker-ce-edge/packages8 {2 N4 N, h/ B3 x0 s5 W& h) X- T
proxy = False
3 T& B4 i  R" h. Yproxy_dict =
/ z0 |( l, E- p" tproxy_password = 6 k# C& Z3 j* ~7 \
proxy_username = ' u8 q# u6 H; [* R% W8 M1 f
repo_gpgcheck = False6 Q( u/ o& R: {; Q
retries = 10
8 b" Z+ u5 x" V/ q8 ?9 _0 hskip_if_unavailable = False; G  N4 ]  J$ a8 i$ z; \* S. T5 h( B
ssl_check_cert_permissions = True0 A, r+ C, j- K+ S
sslcacert =
! {: L) w7 X; \& {/ bsslclientcert = 7 r4 q/ z4 V$ s" o  z0 j
sslclientkey =
: E+ U5 D8 j& [6 {$ Xsslverify = True8 m, E+ `1 |; K9 H  O) e0 \
throttle = 0+ m0 \7 N+ j- L
timeout = 30.0
4 M6 n: k5 i1 a6 Wui_id = docker-ce-edge/x86_64
1 D! l9 n. W7 O+ a% ?ui_repoid_vars = releasever,5 @/ H* Y) J. x0 ^1 _2 H1 K6 B
   basearch. l4 c7 M0 D) O; i
username =
) v5 u1 J' e6 [6 L9 ~  B0 @3 q% [7 L" I: u+ P$ e
# yum-config-manager --enable docker-ce-test6 |, _/ a5 v5 ^7 c! s7 u3 z" e
Loaded plugins: fastestmirror6 m' ^5 e- a- u2 S6 o) S
================================================================================ repo: docker-ce-test ================================================================================/ ]) j2 E( l- h4 D8 g; w
[docker-ce-test]7 a' s* J( h& o! X) N' d! R
async = True
6 I$ p% M% c7 S4 R  q! ]3 v* Abandwidth = 04 H) E: b6 R1 C# B1 [- x- l; w
base_persistdir = /var/lib/yum/repos/x86_64/7
3 M$ F) n4 U6 ubaseurl = [url]https://download.docker.com/linux/centos/7/x86_64/test[/url]
- s# v, I/ {+ o2 w% ^cache = 0( C: n7 ^- y' p( R* c& y
cachedir = /var/cache/yum/x86_64/7/docker-ce-test
" S9 m( _; _0 _) {  Mcheck_config_file_age = True+ U* ^3 |) t. H6 F
compare_providers_priority = 80
$ P2 K, j0 l6 Y% a: n: K1 Scost = 1000, j0 h, {! o2 S6 W1 \
deltarpm_metadata_percentage = 100% x4 i- x5 N; x# U& i9 ~1 s: C4 X
deltarpm_percentage = # o7 x6 f$ Y$ Q0 @2 x
enabled = 1
4 r: U7 U7 A2 v# b$ }8 u. Eenablegroups = True
1 X; u3 Z! ^2 m2 L; aexclude =
7 J3 C! W2 |! W+ }failovermethod = priority2 L) D4 [4 K; s; K8 J  n3 @, b
ftp_disable_epsv = False
. p! _( i+ v8 D! t- p2 hgpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgcadir) V# Q$ \3 E: D( X4 A$ h' x3 d
gpgcakey =
$ \3 u/ _# Q$ }gpgcheck = True( t; u; {7 Z. ?$ U
gpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgdir+ F. a4 U  X0 C
gpgkey = [url]https://download.docker.com/linux/centos/gpg[/url]
" v) J  O. m6 W; r* r4 }* bhdrdir = /var/cache/yum/x86_64/7/docker-ce-test/headers: p; ?8 W% T. F  }
http_caching = all* d; I& \! X0 m, m. N) X6 H
includepkgs = & ~+ @! I: ?" n9 a4 N9 |2 z# s
ip_resolve = $ N4 g8 D5 p; Z# E6 b% z9 V4 ?
keepalive = True. o! ~- x0 D& X% z% _( r# ?) f) n
keepcache = False( c, e* N4 `/ y9 Y& T- R
mddownloadpolicy = sqlite& B* J( [3 K1 r5 L. r& [; l
mdpolicy = group:small. ~5 p* k: {2 u: p8 w, `. Z7 d* @
mediaid = % f& F; Q6 S* Y+ Z
metadata_expire = 21600
9 w7 C, J3 ^0 r( pmetadata_expire_filter = read-only:present
/ A8 G- c, _; s8 t0 s% k* Fmetalink =
1 g8 l) r% D6 mminrate = 0: e& P& U# r/ I8 O' g5 C3 E9 l3 ?
mirrorlist =
& t5 w. m9 _( |$ _: w+ \mirrorlist_expire = 864002 S# P( Q6 z5 O* F9 K  A: l) o
name = Docker CE Test - x86_640 I& j3 R% p5 k1 g/ V- a
old_base_cache_dir = % m! s- M" I8 `
password = 2 }2 o) n) g& j8 R+ m+ P
persistdir = /var/lib/yum/repos/x86_64/7/docker-ce-test/ R% }( K8 a7 R6 o7 u" R) d1 @
pkgdir = /var/cache/yum/x86_64/7/docker-ce-test/packages  [  \  j4 H( L3 O+ T! Q% ]
proxy = False& F; Z( r. T- V
proxy_dict = % \) D0 m* {) F
proxy_password = ( [. H3 c% f) G+ f( f
proxy_username = 1 m* {' {3 E7 n  R
repo_gpgcheck = False
' i. ~) Y1 \' b) z7 v! Jretries = 107 h! n& @% p) h+ \! d3 f
skip_if_unavailable = False
+ P3 u! i- F; P( W6 B0 bssl_check_cert_permissions = True! z+ w- P6 D, ^* B# y" Z8 ~  n
sslcacert = : ~5 p) Q( _7 q+ k$ r" r& Y
sslclientcert =
2 l" l/ H8 f, n: z: dsslclientkey =
% y5 O: Z+ _0 g5 B+ B" U  psslverify = True
+ b, Z) m% }9 w# J1 \throttle = 0
% i& N8 P7 K- M, M: t  x& }3 g$ jtimeout = 30.0
  S; c0 C: E  h+ X% r, wui_id = docker-ce-test/x86_64
5 \) L. d: F! e: X; x! k( h9 @: Qui_repoid_vars = releasever,' u: k( r5 N$ n0 m
   basearch
9 c/ v3 |0 e: L% @" A  ?username = 2 d" D6 ^& Y2 K  D9 {4 ]

: V) ~# a; M2 j8 i. 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
: y8 U! ^1 J( D& t& g) Q* k  U3 s+ |启动docker.service服务。7 n  s3 S& i' E* r: F" R2 s2 U
 楼主| 发表于 2018-12-9 09:51:15 | 显示全部楼层
yum list docker-ce --showduplicates | sort -r    查看yum源中docker-ce的安装包
2 E( h: C3 F, C# y6 r0 p6 y7 f3 z3 I1 H8 D% ~$ @
curl -fsSL get.docker.com -o get-docker.sh    获取docker 相关脚本。  [; c' U1 E! P9 {) H
' }2 m/ d& y" ?; y
systemctl start docker.service2 D: H0 e4 D' ?& H5 n/ C
启动docker.service服务。
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

如有购买积分卡请联系497906712

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

GMT+8, 2021-4-13 09:16 , Processed in 0.064808 second(s), 24 queries .

Powered by 龙睿 bbs168x X3.2

© 2001-2020 Comsenz Inc.

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