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

易陆发现论坛

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

CentOS 7 安装docker环境

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

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

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

x
Centos7安装docker
; A% `. Q6 v9 d8 G; G* B/ G     各个操作系统的安装可以访问:
- {0 P# i; S/ b; t+ V3 ?! ], F1 A) H9 D     [url=https://docs.docker.com/engine/installation]https://docs.docker.com/engine/installation[/url]
5 N4 n4 r0 D* `0 g" Adocker分为开源的免费的CE版本和收费的EE版本:( F" m. O! K6 f( ~0 X: w
以下实验环境,采用在centos7.2操作系统上安装,使用docker版本为Docker CE版本:2 j1 k, A3 B; f& d* s) ]' K1 r
配置docker的yum源: H# p+ l0 U5 R( ^3 `+ L
yum remove docker \0 r. T$ K% @. f
                  docker-client \9 a; H3 ]( t8 g+ V. W. \! i" N" w
                  docker-client-latest \
) I+ w" P3 Q" A. Q0 e0 w                  docker-common \
) c8 Z4 A% L, ]+ Z9 K5 y                  docker-latest \
) c1 G) ~1 [8 d% z0 v) v$ v$ x                  docker-latest-logrotate \
( u- x! p+ _3 P2 J2 ^$ L( X                  docker-logrotate \
% m  K, m  H+ k6 [1 M- ^                  docker-selinux \: y6 X9 l0 m8 w
                  docker-engine-selinux \
6 |5 w: T; E1 \% B% [2 d+ ~8 s. k                  docker-engine
2 T3 G: E! w4 g5 v) L. m
9 h7 n5 r5 r. d: d, H& Y4 x" U. }7 s# z( q, N  V, h, C
yum-config-manager --enable docker-ce-edge   测试验证yum源状态和信息1 A5 C$ Q1 q  P5 g% Q' K
yum-config-manager --enable docker-ce-edge: @2 ?9 _) D, b- ~
Loaded plugins: fastestmirror: R8 c1 H/ q2 q7 @7 V6 P
================================================================================ repo: docker-ce-edge ================================================================================7 ]/ u2 o0 P5 ]9 U& v
[docker-ce-edge], {2 O( _5 f; `4 ]5 @
async = True1 Z! p* s! L2 J* E# y7 z* j$ [4 Q0 [
bandwidth = 0
9 ]& g9 Q9 l; C! [4 } base_persistdir = /var/lib/yum/repos/x86_64/7
' Z8 @; a: b! `3 F- {1 u 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]( w5 ]( N# I7 e, M$ x
cache = 0
3 {, t0 r' ~7 j  ~. j0 _8 W' t cachedir = /var/cache/yum/x86_64/7/docker-ce-edge
/ ^, H: ]8 Y! M2 L* ^: Z/ x check_config_file_age = True
+ F9 k) p2 L* Q' J, x# u" j compare_providers_priority = 800 k" H: e1 Q9 |
cost = 1000
$ ?; Y2 O/ W6 M$ E& X deltarpm_metadata_percentage = 100$ ^; V  U7 W) m, Y5 o8 Y
deltarpm_percentage =
, U7 G4 {" d" ] enabled = 1
: E- G% t  h8 q7 y7 W1 T enablegroups = True" e% W7 [% J1 B; I
exclude =
# j# V8 x) q: X) U" U7 z0 D failovermethod = priority" y3 b' d" W, P2 }# @; @" c1 }
ftp_disable_epsv = False
8 f0 |- P% v; i1 p7 I9 A gpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgcadir
; a* e' j7 {7 \1 S, a4 ^" O gpgcakey =
9 d, H- s( |& n% s$ l gpgcheck = True, u2 L: c  h/ j* `) ~! r1 R
gpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgdir; t/ ^! z4 O; d, Q: L3 ], g! k
gpgkey = [url=https://download.docker.com/linux/centos/gpg][color=#0066cc]https://download.docker.com/linux/centos/gpg[/color][/url]0 Y+ {! z9 V3 A! C
hdrdir = /var/cache/yum/x86_64/7/docker-ce-edge/headers) P, @$ m; y+ H5 |# T0 M' x: Z
http_caching = all# t8 W  J) o, Q; k$ ~1 L# O
includepkgs =
6 Q8 q2 W/ l0 ]) U* H3 w, v ip_resolve = ' F1 i9 t) w! m$ j1 P
keepalive = True2 o3 g2 R* l( K
keepcache = False
! N; O! W9 F* y3 [+ g mddownloadpolicy = sqlite
: p, ^( i. G$ O& V8 T4 f mdpolicy = group:small
% d6 i+ d% q; |' f mediaid =
7 p; u1 B0 K- V, t metadata_expire = 21600
; Q9 x- ~9 f% ] metadata_expire_filter = read-only:present" ]$ v3 e2 w  H4 v
metalink =
  _0 j6 o3 z  H/ ?* Q/ `+ { minrate = 0
% f7 ]4 J' S  L  D mirrorlist =
7 J( f8 Z& i& @" ~7 R mirrorlist_expire = 864003 L" M- V1 ?4 k% ]* d' A
name = Docker CE Edge - x86_64
- ~; Q" t' t& @8 C; F old_base_cache_dir = , {0 v- D& _& K# O+ c9 p7 X
password =
/ t- `  \0 ?9 ~# h persistdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge
4 Q8 W2 k1 y" X9 w pkgdir = /var/cache/yum/x86_64/7/docker-ce-edge/packages' |9 ^' N# a4 u7 w$ s6 W
proxy = False
3 p0 g6 o; @& p9 W1 @ proxy_dict =
7 H, y" I& y2 ]% h( z$ N9 ~& V# B proxy_password =
9 _. J8 B1 D+ |7 v proxy_username =
' @, {6 `( a: W" v8 I repo_gpgcheck = False5 X! A% ]8 |6 X0 I/ U' z
retries = 10
/ x" ~/ m; p( k7 {2 U skip_if_unavailable = False
% ?# B0 V' [# ~# i& Z- x. [ ssl_check_cert_permissions = True
) R2 S; F( s) ~  \. d sslcacert =
; U1 X  q# r- |/ [ sslclientcert =
% L4 a5 b" u5 l0 G) [1 T8 c sslclientkey = 7 X) b9 D0 T7 u9 H3 X) h1 ^+ F
sslverify = True2 O: K( j8 G# h! x
throttle = 02 e3 S( f2 Q2 I  z6 H8 o( q0 o3 A  V
timeout = 30.0
) t6 c3 f7 F" m* y8 `7 }( V  y ui_id = docker-ce-edge/x86_64
3 D/ h$ m) k* }6 Y! F ui_repoid_vars = releasever,; |( _( T6 D# d
    basearch
! _( x+ @3 v+ S& i" G1 p username = * E9 c! D. B2 k6 i
/ {3 k! x. g" l3 |' P  x" X" o9 f$ b
# yum-config-manager --enable docker-ce-test
, _% f: j5 X3 _ Loaded plugins: fastestmirror
! D7 @1 F: k+ D. u ================================================================================ repo: docker-ce-test ================================================================================
8 L5 H0 y5 m6 t" U* l [docker-ce-test]4 v, P& N$ M- i
async = True
* j* I& h4 u1 k# y% x, Z bandwidth = 0
6 }  U5 |8 S. P+ ^4 A base_persistdir = /var/lib/yum/repos/x86_64/7
% d0 q1 W) Z% p4 @2 S- v6 T; 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]
" U8 Y/ R8 d! U6 R, w cache = 0
+ u1 R9 g- b- ?( n cachedir = /var/cache/yum/x86_64/7/docker-ce-test- U" j. H2 b. F. p7 |- w4 @7 Y! J/ p
check_config_file_age = True$ I* C( z4 c+ J3 f1 m3 c9 M- H
compare_providers_priority = 80% \3 v, B+ t( a6 D
cost = 1000! D7 x& w; T- t" E1 ?
deltarpm_metadata_percentage = 1008 b" C  R$ |9 \2 |
deltarpm_percentage =
5 {9 {- x* u' b enabled = 18 C* u/ @& o, b; h7 q2 P
enablegroups = True& J+ C& v/ m" d7 Q2 J6 G
exclude =
% ~$ |, y$ `& \1 ?6 b) O failovermethod = priority- k' T1 ^* J, |) @, A
ftp_disable_epsv = False
) T( T4 j/ l/ j* X+ a gpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgcadir% B8 X5 l4 }0 z+ c
gpgcakey =
. _1 P% |, D- P7 b5 s& H: h gpgcheck = True: U2 \7 X1 Y# R. U4 i
gpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgdir
/ g1 |% T2 U3 _& I* z" G$ f* z gpgkey = [url=https://download.docker.com/linux/centos/gpg][color=#0066cc]https://download.docker.com/linux/centos/gpg[/color][/url]$ F) @  H% S) M7 R0 z' u& V
hdrdir = /var/cache/yum/x86_64/7/docker-ce-test/headers
4 P3 p' ]9 B) Y http_caching = all! l% |; a* s4 p+ d( V
includepkgs =
2 I- n8 m1 @" o( G% @ ip_resolve = 3 s& O0 l2 y& {* s3 q' a" g
keepalive = True
, l  J4 q7 _! h+ i3 I/ H keepcache = False( O8 S' [+ m& p7 l3 ^; K
mddownloadpolicy = sqlite3 b  ]$ Z6 N# |# e0 [  h% f4 o
mdpolicy = group:small: f3 ?- s7 B7 V8 t3 u: u! s5 u
mediaid = ! D- ]7 g/ l9 n* l
metadata_expire = 21600
8 w5 m! N+ B% W metadata_expire_filter = read-only:present
$ C& d; P  K- s( p metalink = 0 ^  Z& T6 w- e2 ]$ n/ T) g3 g
minrate = 0
2 y& j# G$ D  _4 o$ j% l8 Z6 P* s1 J mirrorlist =
5 E% y4 I6 s: q* } mirrorlist_expire = 86400
( S- \6 r4 o! f3 ] name = Docker CE Test - x86_64
' ^& y& B2 @4 T- V0 B; Y old_base_cache_dir =
( @5 q  v0 N8 o$ H, X# M  u1 T password =
5 i! U) e: ]( Z  c2 K/ X# t# j. S persistdir = /var/lib/yum/repos/x86_64/7/docker-ce-test- i- {6 {9 v$ u% s
pkgdir = /var/cache/yum/x86_64/7/docker-ce-test/packages
, U2 P5 a5 P+ f3 C( Q& k proxy = False4 [/ W; Y! S5 k% b: g( U: ^
proxy_dict =
8 K3 D$ u) `' X* L proxy_password =
1 n+ i2 j" _8 g proxy_username = 6 U; P( O$ r3 |
repo_gpgcheck = False+ s$ Y0 D3 ]% e" N0 B# n* q( R& h- }
retries = 10) q) C8 w% Y$ Q+ q( e: X3 u
skip_if_unavailable = False
9 s. P% Z4 s" k ssl_check_cert_permissions = True
7 f, D+ k  k, B( ~ sslcacert = & x1 {4 \% j- R$ a
sslclientcert = 3 y6 r; T7 E! o" ?, G& {1 ^& G; w
sslclientkey = 6 v( }+ `! z% ]( _* y5 N
sslverify = True
' W# s" c7 j" ~6 J+ y$ a! I throttle = 0
3 |2 Z( B. ~+ C' O8 |0 [ timeout = 30.0' V% C8 v5 E4 W8 ]; k; x
ui_id = docker-ce-test/x86_64" r# ~% T5 j* m
ui_repoid_vars = releasever,- h$ C0 f$ U# b
    basearch
9 L1 }' X7 t6 q& R. X; Z username =
$ o2 C7 o9 }, N. S6 Z  E% C
# p6 [) b& G6 q& W! k8 B! N* l( s5 V, J: c7 e

: G/ [. h9 {, {% K安装相关包:   yum install -y yum-utils \
/ K( [# h4 y! G% b  device-mapper-persistent-data \- {1 H; j. i* a  ?
  lvm2, f" h' m* X% N
' L- Q; H7 f- i0 r. I2 |' M: g* c
  k$ w! \" J% E* p8 S6 ~% Y. T
配置yum的repo文件
, w. k; r& m4 O+ f2 ~1 byum-config-manager \) U6 E/ c( L5 |. ^
    --add-repo \" L+ _4 o! b* e
    [url=https://download.docker.com/linux/centos/docker-ce.repo]https://download.docker.com/linux/centos/docker-ce.repo[/url]
% g' B+ E8 h: N( [1 W! R, Y8 o
1 n5 Q0 ]4 Q; X$ xyum install or yum update
* V2 i! L# n) ~! O7 T: H& ]. S6 {; y9 y* n5 g6 Y
安装docker-ce
5 |7 E6 J; R2 R3 [8 O( u1 Gyum -y install docker-ce$ L. E, J. Z- D& E* S! s/ ^
" v" {; g) n! D& I8 u6 @. B' H
8 u$ E1 u3 ]( F6 @4 L9 x- }( |* V/ d7 _
4 S9 |0 F' k; h, ?3 p

点评

  发表于 2018-11-29 15:08
 楼主| 发表于 2018-6-21 13:15:51 | 显示全部楼层
yum-config-manager --enable docker-ce-edge   测试验证yum源状态和信息
  v2 N4 r' f6 C/ r( J: f, fyum-config-manager --enable docker-ce-edge1 q2 h2 \# G( b7 q+ A1 J
Loaded plugins: fastestmirror& k, ~6 D( {6 O4 @& B
================================================================================ repo: docker-ce-edge ================================================================================
  u* U# X" c6 F: r  ~0 J- x- v1 d2 q[docker-ce-edge]
3 }8 [- ?" F8 s* J  nasync = True# P% k1 L4 \! g! f) H
bandwidth = 0
" y0 h3 g+ @! i  g3 i: _' tbase_persistdir = /var/lib/yum/repos/x86_64/7
( Z' r/ |& R+ G9 H- l" |baseurl = [url=https://download.docker.com/linux/centos/7/x86_64/edge]https://download.docker.com/linux/centos/7/x86_64/edge[/url]
- e0 |$ N; E+ u# fcache = 0
4 {4 y, V) f3 X3 Icachedir = /var/cache/yum/x86_64/7/docker-ce-edge( i2 U$ w" z( @' Y; v8 }4 U
check_config_file_age = True7 A, A( z2 @9 h$ y
compare_providers_priority = 80
5 {6 e" @9 Z$ ~3 [/ ~8 hcost = 10007 t0 M- ~: p7 M) i5 v: ^
deltarpm_metadata_percentage = 1007 H( _+ @$ W4 m5 o* N  Z. @
deltarpm_percentage =
( ]& N& B, v) fenabled = 1
' z# Q" M3 N* uenablegroups = True' i. i: i3 k+ @0 ]& X/ R
exclude =
% n9 q* F0 ?. _9 H, x9 y4 yfailovermethod = priority
$ u+ L+ t" V7 C9 M' u3 w- Gftp_disable_epsv = False
) |; e& _9 e$ Mgpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgcadir
& `  N5 t: m; J6 wgpgcakey =
2 [1 v0 l: c) }9 ~' u" Pgpgcheck = True
2 i( }4 r0 R1 _! J: cgpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge/gpgdir7 W# Y3 l6 z5 m: z# ^
gpgkey = [url=https://download.docker.com/linux/centos/gpg]https://download.docker.com/linux/centos/gpg[/url]
8 _+ Z, Y) {4 W" x, H, a1 P- B0 Zhdrdir = /var/cache/yum/x86_64/7/docker-ce-edge/headers% `' {. }1 s2 L  O( H' {
http_caching = all
' q6 E/ d1 k7 P9 ?5 p- p7 Fincludepkgs = 2 v' m. Q7 H5 \& j5 ~  x7 y" S. I
ip_resolve =
4 k1 Q5 l+ _5 V# zkeepalive = True
+ [7 C' W; I+ |$ Jkeepcache = False( }) a# b8 h5 b0 {0 T- {% S/ P
mddownloadpolicy = sqlite% E6 |0 m. O" o( A
mdpolicy = group:small
6 [  B3 |; p2 cmediaid =
; N, V9 i" m4 x* bmetadata_expire = 216006 W# ?5 v7 u0 z5 E! g8 G- x& e- |& h' _
metadata_expire_filter = read-only:present5 T, p. u4 e. q! w7 u
metalink =
0 j8 O+ V! k0 s6 |' I' [% `minrate = 0
) t9 W, i1 ^: t5 [* @6 @( h( tmirrorlist = ' V& }* C3 J1 K' p( E8 e
mirrorlist_expire = 864000 F' l& t6 Q* w9 i- X9 S
name = Docker CE Edge - x86_64# E" K, B5 {( W( p5 Z9 R4 @. C& D
old_base_cache_dir =
+ K# j, x1 ~. tpassword =
; E" d) w6 p; l, [# l# zpersistdir = /var/lib/yum/repos/x86_64/7/docker-ce-edge$ |- }# A5 x) ~0 |; v
pkgdir = /var/cache/yum/x86_64/7/docker-ce-edge/packages
3 s4 a5 K+ |% ]7 Jproxy = False3 O4 P  K6 _! g7 [8 I* C
proxy_dict =
/ [9 z( }8 R9 _* E3 R$ aproxy_password =
/ B6 I4 Y# N) W4 k7 Lproxy_username = 7 E6 L8 T& R, t) Q
repo_gpgcheck = False" C6 b, ~- r2 B& h' q
retries = 10
6 w7 a3 e- ~* k) Z9 Oskip_if_unavailable = False( d- L) t7 J; E" q
ssl_check_cert_permissions = True
0 E6 G- t& `. T7 ?6 E, Osslcacert =
/ p, ]) \' [# h9 _5 V, `sslclientcert = $ z8 b- h& {( ?# n- D6 b
sslclientkey = : u: l# \" w/ t" W
sslverify = True6 k; a; U2 Y/ u9 }2 T+ S; k4 W' |
throttle = 0+ x7 w5 I* s( o7 x/ `+ L
timeout = 30.0
( ?2 F* {+ T; X* U) Xui_id = docker-ce-edge/x86_64
: `- k- D% f3 ~- M$ Kui_repoid_vars = releasever,8 P3 Q0 c8 O! f$ H* I
   basearch% R, A7 G- z  H
username =
# ?6 H# S* _' l; C( E& ?$ j/ }+ s) t1 s
# yum-config-manager --enable docker-ce-test3 C8 m4 z: }0 N* e0 G) L! f
Loaded plugins: fastestmirror
  u. P0 ?, ]" N* v: U  q- z) |7 E$ a================================================================================ repo: docker-ce-test ================================================================================
' r7 t0 s* s2 \& g8 G4 Y- }/ ?[docker-ce-test]
  L/ Z# w1 E' J& z8 C1 E+ Kasync = True2 ?. C& t$ b4 J" Z1 I0 q
bandwidth = 0
% R' ?) T* Y+ f0 Kbase_persistdir = /var/lib/yum/repos/x86_64/77 ^+ t  E9 \& x8 K
baseurl = [url]https://download.docker.com/linux/centos/7/x86_64/test[/url]
* f, @* r1 m& p/ p" Mcache = 0
0 M# j, O& h3 F$ f* S  bcachedir = /var/cache/yum/x86_64/7/docker-ce-test
4 c+ ]- ?# q: ]) p9 ucheck_config_file_age = True& Z, U- C3 q: y# K& Q& v
compare_providers_priority = 80
4 B% _' [$ h- M0 J6 b4 M& mcost = 1000
" Y% }2 c5 A4 \' ^5 r' l, vdeltarpm_metadata_percentage = 100
. [) ]* [* T1 K  E- L" O' [deltarpm_percentage =
( U5 S. `( {1 ?8 \' n5 Senabled = 1
# ~+ g/ d* X4 N- y1 R# ^enablegroups = True
6 q$ z( Q  u% |! i5 ^1 `exclude =
' P4 I4 v: i- ofailovermethod = priority
6 G; q9 Z4 M! Y/ u  B- ?- s  N# bftp_disable_epsv = False
4 `( v0 k" U! q3 Q, U8 hgpgcadir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgcadir
3 i: g/ O, s' h5 C- F* Xgpgcakey = # v6 b3 B! z! h% d
gpgcheck = True
/ g+ B0 C$ F4 P4 v) xgpgdir = /var/lib/yum/repos/x86_64/7/docker-ce-test/gpgdir
2 D- ^! y: u+ Z  D+ R6 Wgpgkey = [url]https://download.docker.com/linux/centos/gpg[/url]! O2 q0 Q7 Z" O1 d5 I
hdrdir = /var/cache/yum/x86_64/7/docker-ce-test/headers
$ P  e( Z) D$ k" c/ g! Ghttp_caching = all* a1 `0 ?% L  ~& {2 G
includepkgs =
9 y' F5 d& K, X% ?+ Rip_resolve =
/ o; k" S2 p2 H5 n. A2 Fkeepalive = True  n" P0 C" u* k
keepcache = False4 x- W' ]: @! ]8 E2 z
mddownloadpolicy = sqlite
" w) v9 B- M  X; e# n; {mdpolicy = group:small
! }# p4 c3 X0 Smediaid =
: K% |4 a! a5 w4 \2 ]$ bmetadata_expire = 21600
, a4 ~3 y' _3 V) {0 m' o7 V* vmetadata_expire_filter = read-only:present
& C& H# O* p/ l+ @" Z8 R9 l# pmetalink = $ ]8 Y! o9 a% n2 n) b  s6 m8 @
minrate = 0% v# X! y  v* W  p: u, z4 b! O( D
mirrorlist = " j9 Q5 M, B0 @) C) W+ t
mirrorlist_expire = 86400
. p+ O9 C5 W" Z8 O% G& a9 S* vname = Docker CE Test - x86_64
1 {5 N& m' P2 j4 k2 a: Cold_base_cache_dir = & I9 y- R# p! L( }9 J
password = + \1 b/ u2 L' \9 a" x
persistdir = /var/lib/yum/repos/x86_64/7/docker-ce-test9 X$ _, @1 e/ K: ?* X1 E. p
pkgdir = /var/cache/yum/x86_64/7/docker-ce-test/packages
4 _; }7 q; u/ U) B) Y5 U" _. Bproxy = False! ?1 _9 P8 Y0 g
proxy_dict =
( M9 G! a! |  J/ C) d: [proxy_password = $ F, f$ r% i$ ?6 v5 n
proxy_username =
: F; ~( B3 @2 Q0 }, _8 s# lrepo_gpgcheck = False' q8 @. W- T1 y0 W+ Y
retries = 10' h2 Z; z' @$ n0 V3 O7 T% q+ K
skip_if_unavailable = False
/ l; s5 ?" ]. `5 E/ Nssl_check_cert_permissions = True
& l3 |; I+ S& K0 l2 k0 ?! M: p& _/ Csslcacert =
( N6 Q/ t+ c5 @- _  q# R. Tsslclientcert = " C# S0 e* _6 a8 U' m& @
sslclientkey = 4 i& b, I% _' Z, s. @
sslverify = True, L7 a' s6 ?! f* s, w3 ?/ L% K4 M* b
throttle = 0
4 g2 K( |  ~6 _  v8 htimeout = 30.0
" O( D( l" X5 [* K+ o5 ^- |1 b; |7 Tui_id = docker-ce-test/x86_64
) z+ h/ n5 @  ]5 O' Z( v  oui_repoid_vars = releasever,
7 _2 f# |  Z  c# ]7 i' P   basearch
) O8 S; ~' E+ i1 G% W" Musername = ) e9 R) F- A1 Y

7 a: V. z0 E" M1 c7 g
发表于 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
0 X" F9 n, Q1 X: X* w% [& ]3 b8 U启动docker.service服务。0 s9 ^* O" t2 J2 n, X( k: Z, d" n* n! l
 楼主| 发表于 2018-12-9 09:51:15 | 显示全部楼层
yum list docker-ce --showduplicates | sort -r    查看yum源中docker-ce的安装包0 D" g" [2 y) A7 X' I0 U4 ?
, I" q6 O9 K& J0 U7 i- h; W
curl -fsSL get.docker.com -o get-docker.sh    获取docker 相关脚本。
) H% R  a( r/ ]6 f: v" G1 b/ n1 A' [$ @, d2 [8 |( ^
systemctl start docker.service% g: r: E+ M: K, `* I8 h7 e
启动docker.service服务。
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

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

如有购买积分卡请联系497906712

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

GMT+8, 2020-7-8 02:46 , Processed in 0.063052 second(s), 27 queries .

Powered by 龙睿 bbs168x X3.2

© 2001-2020 Comsenz Inc.

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