找回密码
 注册
查看: 553|回复: 3

docker 调整docker info 信息

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2023-4-3 16:55:26 | 显示全部楼层 |阅读模式
docker info . m" J+ Q. s( C4 N: g
Client:) A  V: U6 G1 \3 Y3 _1 r  E
Context:    default
. }0 A. E: u, W2 [! i8 A$ O Debug Mode: false
- Q# p$ ~' S3 w7 O Plugins:
: ^2 A" v) O1 `' k( P  buildx: Docker Buildx (Docker Inc.)
# G0 u! V! J  P3 g4 E* I    Version:  v0.10.4+ T5 i# Z) e" f! l2 M- F' N
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx7 v9 a* t3 D. {9 S
  compose: Docker Compose (Docker Inc.)
+ }* q  E* u9 L* K( i    Version:  v2.17.22 z$ S8 w+ W8 D7 L& \6 I
    Path:     /usr/libexec/docker/cli-plugins/docker-compose
: ^% G' N9 s% c5 n  scan: Docker Scan (Docker Inc.)
' _, I) t- o% A: F' @    Version:  v0.23.04 X: _/ Q6 `! X) j
    Path:     /usr/libexec/docker/cli-plugins/docker-scan2 Y6 g5 d0 E( m; ?, C$ W5 @) P% I
8 T  q% p# I0 |# ]
Server:
2 B! M. c/ b4 d+ C3 X Containers: 8" U" i9 `0 C( L. K& U. p2 }
  Running: 8
- t# V8 y% x2 a: S% g) Z  f1 J* G  Paused: 0
6 L4 b2 p. K$ Z" ~! p4 I  Stopped: 0
6 A: W* j$ F5 u  O0 x Images: 5
  V0 O8 ^( f9 X) S' l: [ Server Version: 23.0.2) u! S- F: }( P
Storage Driver: overlay2
7 i! \& H0 @' G9 y7 ]9 _( D  Backing Filesystem: xfs5 [: o( R& J2 s) ^, e
  Supports d_type: true  W3 I1 F! W% i- ]3 z
  Using metacopy: false0 P2 a% q2 ?' b& v$ A' S6 A1 R
  Native Overlay Diff: true
+ B! D9 M6 p, F% Z: \5 q  userxattr: false
3 a1 O' N1 S9 r4 M. Z Logging Driver: json-file: L+ R  n* o% _0 G
Cgroup Driver: cgroupfs
" `4 B! a* W8 M3 R Cgroup Version: 1
- T; t: V9 m& g# m1 r$ h+ K/ g Plugins:
$ s1 x4 u' R; _2 t$ C9 j  Volume: local
  ?! \9 |9 F0 U( Q  Network: bridge host ipvlan macvlan null overlay
& G+ o- S6 E; }: [$ m  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
7 |5 ~4 O2 ?7 S# m Swarm: inactive9 b& m: L8 T3 H' J  k$ e5 ]
Runtimes: io.containerd.runc.v2 runc
+ H* K$ B. i' u7 z/ ?9 F Default Runtime: runc
# C+ R2 i, l1 Z& l& f2 `) S& X Init Binary: docker-init- F  x6 m3 z2 Z3 L' ^) x
containerd version: 1e1ea6e986c6c86565bc33d52e34b81b3e2bc71f
, Y) l1 J6 B0 _ runc version: v1.1.4-0-g5fd4c4d
- _( x. ^; Y. f' O init version: de40ad00 y& e' {+ N: J6 v6 _8 Q! M+ M
Security Options:
5 K+ B/ y/ j$ T8 W2 c  seccomp
' H7 f: A6 Z/ o" p   Profile: builtin$ d' [  g  I% R. S7 T
Kernel Version: 4.18.0-373.el8.x86_64
9 o  O- J$ @: m9 x Operating System: CentOS Stream 8) H5 w) Q1 R% n1 C% r- H# g  c: t
OSType: linux
  A; ]# J, ]1 w+ E Architecture: x86_64
3 }  j  T6 M1 _ CPUs: 2
$ s- k$ z6 g: o4 V2 X, E; k- ] Total Memory: 3.618GiB
# r7 U! M0 d) ~- G1 K Name: controller26 Q; r* H4 ?: ]/ I0 |
ID: 03bf6ad8-7640-4bf6-a733-b4a34d91ca03
+ [. R! ~) M! j/ y6 m% d Docker Root Dir: /data/docker' c9 u; E! w  O) l. c" Y' @1 L
Debug Mode: false
, r* d$ ~5 X# _# `/ |; b; F8 m1 ` Registry: https://index.docker.io/v1/3 m; S  ]* \0 E2 S. _
Experimental: false
9 ^8 l( I& m/ i& C. [9 G) ]6 j Insecure Registries:8 x( J% X) x/ q) ]5 ]
  127.0.0.0/8
" }$ G0 b+ k, n' R  t2 L Live Restore Enabled: false0 W4 V1 V3 v$ g1 z/ L" t' h" I+ C
1 h+ c  _. n# U  R' i- v
WARNING: bridge-nf-call-iptables is disabled) h* j7 A) q# d% q+ T
WARNING: bridge-nf-call-ip6tables is disabled
; Q8 P7 u' u3 ]. \1 W
7 t7 Z% P* e) S2 D% o2 J1 z# K) ]* G& u$ c
0 r( r: K1 D0 J. u

. ?0 ]) D; `  aWARNING: IPv4 forwarding is disabled  X& \" e* G% E. N& r$ `& t; s
WARNING: bridge-nf-call-iptables is disabled
, n# E' s- I) U5 W/ ~+ j1 Y: o% oWARNING: bridge-nf-call-ip6tables is disabled! I: N: m. W& X# K
% f! l* S/ [; E4 W, K2 {; `

; t  }* R! G  T9 O

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2023-4-3 21:30:16 | 显示全部楼层
执行docker info出现如下警告
/ d1 N- x: W% i6 o1 ^# G% y: j, k& C3 T; M- t" E& Y  y
WARNING: bridge-nf-call-iptables is disabled! d% Z6 _* f6 P6 n9 l! b, F2 \
WARNING: bridge-nf-call-ip6tables is disabled# s6 g& x4 _  b7 I$ O, ^

5 k) @2 J& P$ z: C; F* K5 M解决办法:
9 R3 `: E1 y! q& l# U2 svi /etc/sysctl.conf
% a5 \, m+ I: P0 T1 |
) _& r3 ^- _9 P( B% S! ^! I1 k# c6 ~' L1 _添加以下内容
6 q9 K: R6 O8 P6 ?+ V/ F9 onet.bridge.bridge-nf-call-ip6tables = 1
$ Y( O( d, T& E; Cnet.bridge.bridge-nf-call-iptables = 1

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2023-4-3 21:36:59 | 显示全部楼层
docker info
+ X" r! _3 T; GClient:/ N. b3 A/ @0 s& i0 H: |' ]1 `
Context:    default) S5 B! `0 h$ \; N  n6 g- i
Debug Mode: false6 l) p% ?5 U0 E2 p  k
Plugins:
6 L5 f2 D2 A/ Q$ L) q  buildx: Docker Buildx (Docker Inc.)/ x: S# k* O3 x! O
    Version:  v0.10.4
& p3 [% u$ K1 a: ^8 m' V6 Q    Path:     /usr/libexec/docker/cli-plugins/docker-buildx+ i, i) e: Q% J3 K) d
  compose: Docker Compose (Docker Inc.)
" @% T# J: `# T" R5 X4 P    Version:  v2.17.2
6 L( ^) M% J/ }8 }    Path:     /usr/libexec/docker/cli-plugins/docker-compose/ H- h6 z9 g7 z4 J7 A& z
  scan: Docker Scan (Docker Inc.)
) x# t, o6 R3 ]8 |    Version:  v0.23.0" W1 a+ M  f7 A- f/ ]+ Z0 z
    Path:     /usr/libexec/docker/cli-plugins/docker-scan, a, K& q7 B/ y- K
' |. A0 j" G% f7 W  L# z
Server:
: i' s: t  n; i7 P; f Containers: 9
% @$ s( o( A. Y$ x0 F! ]: Q! k* P. a  Running: 9
' f4 ]" v% q4 t, i6 e  Paused: 01 W3 N, A; y9 P% g4 L2 d. g6 m, n
  Stopped: 0
1 u$ _0 u% r5 x) W2 F& G' P Images: 41
" _" P& Q* E4 Y& c- ]) ]% q7 c Server Version: 23.0.2! s5 U3 f1 H% ~; ^) F$ x
Storage Driver: overlay28 O2 {. p' x9 ^
  Backing Filesystem: xfs& j+ \( p2 ~; o6 S
  Supports d_type: true
, Z/ r5 @# D2 |" I  Using metacopy: false3 x. V9 s3 u& w6 `
  Native Overlay Diff: true- O9 X9 _( h$ \& X) H5 j2 f$ {
  userxattr: false7 ~2 D  y  {; H- T7 [2 w4 Y! l5 z
Logging Driver: json-file
6 f5 u+ Y" }4 K/ \' V8 Y0 ^ Cgroup Driver: cgroupfs) d0 f4 S+ a( ?% X2 E5 c- G
Cgroup Version: 1; y/ L3 T! x7 p4 d8 ~
Plugins:& n% q1 q. s& z/ A
  Volume: local
& Z" X5 C( p8 U+ y  Network: bridge host ipvlan macvlan null overlay
9 Y* l0 S0 G5 U  O  Z  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
& _+ @0 L: _# \ Swarm: inactive- {2 J3 v+ }+ R5 w
Runtimes: io.containerd.runc.v2 runc
+ c" Q& _0 x0 G Default Runtime: runc
. ~1 O% Y6 ]0 B5 P$ S& V Init Binary: docker-init
8 C! {  ?. e. t9 l5 c  d9 x5 r5 \ containerd version: 1e1ea6e986c6c86565bc33d52e34b81b3e2bc71f
5 ?# a% i, b& Q, ~4 O runc version: v1.1.4-0-g5fd4c4d
0 \; h8 _. A/ `; V6 r" o) R0 | init version: de40ad0
" X0 q4 f8 T6 X6 [5 k7 w Security Options:
/ a  d: v4 `6 i/ O9 o  seccomp( a! b8 y( I" D0 z' E# n+ c
   Profile: builtin% X) j7 c( v) I& H
Kernel Version: 4.18.0-373.el8.x86_642 K( b0 K, C0 A+ f) G
Operating System: CentOS Stream 80 K( z* ]! f  C: o- Z
OSType: linux" C6 s, R, [) D" R: X7 V
Architecture: x86_64* {$ V4 k6 V& n7 S/ d9 W2 D3 Y3 }: l
CPUs: 2
# X7 g7 K' o  u5 Z9 i Total Memory: 3.618GiB, X, F' {3 Y6 @
Name: controller1$ l& u  w4 @6 [% q2 b
ID: ee5d1ceb-511d-48d4-a98a-6976ff290a45
& C4 p  b! x3 y* E0 Q Docker Root Dir: /data/docker2 H) M7 \" Z& V0 c5 T9 @0 N
Debug Mode: false/ ?1 N3 M, [! m! i# \
Registry: https://index.docker.io/v1/
8 }, a; d' j8 L# G Experimental: false6 n6 n4 r  }: {' Q$ i
Insecure Registries:9 h3 P" v8 Q0 m1 _; }/ T5 D/ z4 u  D
  127.0.0.0/8
* H0 v& k2 ]) h Registry Mirrors:% t' ]. l) K' L/ v& D9 B0 h
  https://iby0an85.mirror.aliyuncs.com/
4 j, R& q" l  n' U; d8 e  https://registry.docker-cn.com/
7 d8 A1 W; r+ Q  http://hub-mirror.c.163.com/
. K, f5 V- U# X+ b2 T  https://docker.mirrors.ustc.edu.cn/
: E# w8 |8 P% u& r+ R Live Restore Enabled: false
! }3 L( i1 G8 j- f/ ^; H/ b; w# L) p0 [* M" P- @4 [) e: z

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2023-4-3 21:40:26 | 显示全部楼层
$sudo sysctl net.bridge.bridge-nf-call-iptables=1& i( N% H1 o/ B& C/ n

8 F1 q. z; C* N- o3 _$sudo sysctl net.bridge.bridge-nf-call-ip6tables=1
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 01:21 , Processed in 0.020365 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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