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

docker 调整docker info 信息

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2023-4-3 16:55:26 | 显示全部楼层 |阅读模式
docker info ' a* Y; O. J6 X9 W1 h1 c! W
Client:* p2 _9 `7 a% u) p" ~/ o1 U2 l
Context:    default( T1 W& k! K% H. r9 u
Debug Mode: false
. L! r) g" z# M Plugins:5 \$ L4 `! ]1 [" J
  buildx: Docker Buildx (Docker Inc.)0 v% h- M) g8 Y" X$ R) S3 q
    Version:  v0.10.4& ~1 j  z: m" t# j- N
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx0 c' ^3 u/ f, O! e. K+ a9 c4 c
  compose: Docker Compose (Docker Inc.)" T- i0 k# s4 i1 m4 ^7 D
    Version:  v2.17.2
$ R' r$ H, B+ U6 V4 i( n8 L3 _. ~    Path:     /usr/libexec/docker/cli-plugins/docker-compose
7 Z* \  D! F2 X7 X2 h, l- C5 b* M  scan: Docker Scan (Docker Inc.)" A( O. _7 n! j( O4 Z
    Version:  v0.23.0
; L0 X9 l9 w5 h- o# }# G; b- Z' @    Path:     /usr/libexec/docker/cli-plugins/docker-scan) L! @8 M+ o2 o, p& ]7 E

) @( Y( U& y. i  Y8 F* s2 L9 V% KServer:4 ^4 r/ g: x0 \5 I$ a! F3 I+ m# z
Containers: 8; Q/ g+ S8 j" s1 Q
  Running: 8
+ K' g# u7 H7 W7 d/ z+ |& t4 v  Paused: 0
# K6 c( c) k% t  Stopped: 01 u7 O* |2 C3 t& q$ B9 r( ?: ^9 |1 u
Images: 5
3 z% ~- r  G+ r+ P7 @  T) Q% e* V Server Version: 23.0.2
0 `6 h- y3 V) y' y Storage Driver: overlay2
/ {) |2 Z8 ?% V& i9 o  Backing Filesystem: xfs+ _5 H7 X0 x' F4 v- J
  Supports d_type: true
* j+ ~; q4 h' w6 V  Using metacopy: false: a- M9 a( n( F' q" R
  Native Overlay Diff: true* ?! [* g2 _: L
  userxattr: false2 ]* k* n2 f$ q4 k( {
Logging Driver: json-file
) Q4 N0 M: t  R, P, o* U8 X5 y Cgroup Driver: cgroupfs: H' U! l' `; B+ d: u
Cgroup Version: 1
' W( q& Q4 q; {8 V8 J" i0 I& k+ s Plugins:
* Y2 O% c5 D: u4 r$ t6 H7 e% ~  Volume: local8 G7 z2 V+ h- }/ E4 w( z7 Y
  Network: bridge host ipvlan macvlan null overlay) w5 c, r  F) a" C9 I
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog( \$ R- `  I3 z: h
Swarm: inactive7 ~, Z  K  d* \- ~
Runtimes: io.containerd.runc.v2 runc
& Z1 x. B5 U9 ]& ~6 j3 V/ R Default Runtime: runc& T' h& N+ M9 c/ s. ^
Init Binary: docker-init9 T- z/ n: m/ P1 V4 a
containerd version: 1e1ea6e986c6c86565bc33d52e34b81b3e2bc71f- ?: O7 A/ [+ c6 ]/ u4 q- E
runc version: v1.1.4-0-g5fd4c4d9 a3 T1 f" [/ {' t9 H
init version: de40ad0
) {1 q3 j' U/ I$ Q" i Security Options:
( t& t9 j' c! @  seccomp! [) |% Q9 ?5 w  _  K
   Profile: builtin- u. L8 ?3 J8 [0 Y! F# S
Kernel Version: 4.18.0-373.el8.x86_64
  c8 U0 [7 j3 ~- q Operating System: CentOS Stream 8
. q) d+ Z; v" W% G OSType: linux
$ u- Z6 a+ Y& J- H Architecture: x86_64
4 z) p/ u7 T- f7 p' @2 a! A CPUs: 2
! P( s/ \7 E8 l! d6 y* k& a5 ]. ] Total Memory: 3.618GiB( u0 ?4 n+ T0 v" x8 x2 h
Name: controller2! C$ Y9 T4 X, b
ID: 03bf6ad8-7640-4bf6-a733-b4a34d91ca03
: x8 i5 w0 N% `3 O5 H4 r Docker Root Dir: /data/docker6 n6 s4 k5 _5 n5 I; |' F
Debug Mode: false
+ Q- J% e, P6 [0 v; G- R+ N" i Registry: https://index.docker.io/v1/
. `6 j# N; n6 L: K- y9 @ Experimental: false2 r! t9 ~% W4 \  T, i. Y
Insecure Registries:
( h) @$ m& S: f7 I  127.0.0.0/8! P2 w: E5 a4 R; N/ i$ v+ D
Live Restore Enabled: false4 `' w. S7 f$ q  G/ Q
2 m& f1 C0 ]1 G" g; G5 i
WARNING: bridge-nf-call-iptables is disabled- s3 H( N6 U1 c5 f$ T: o. S
WARNING: bridge-nf-call-ip6tables is disabled
1 m, j9 \# D8 w3 e3 d& J  }
6 O1 h- f) U# n! u# c
, z9 x) I& g. @; \4 |
3 f# }  A- P: u% _- T( N; O" F; K, j
WARNING: IPv4 forwarding is disabled
) e( @* s  p( A+ DWARNING: bridge-nf-call-iptables is disabled
% [( a& c8 o6 x, u3 Y) Y, F+ dWARNING: bridge-nf-call-ip6tables is disabled
8 _' @0 {. e$ j1 p: \& d( z) @! c0 M5 W" U& B4 L/ J, h& H$ _
6 A; C) d1 x- \# W1 G8 b( c$ P

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2023-4-3 21:30:16 | 显示全部楼层
执行docker info出现如下警告8 E( {+ N- p+ T5 O5 \8 b. ^( {

3 F7 F$ R; ~7 f, d& R" B. W& s" KWARNING: bridge-nf-call-iptables is disabled
$ ?/ \: L& y" g9 `WARNING: bridge-nf-call-ip6tables is disabled
; d2 r* }9 L$ H' \+ e4 W: k, N, Y2 O/ L1 e/ M8 u
解决办法:
9 r1 R+ A# T& Z- P# l: `) e9 [vi /etc/sysctl.conf
+ L! Q9 {% F4 Z6 \. s3 h  a0 e: w, h5 _) t6 W
添加以下内容6 W% }; i$ u( N: ^$ c
net.bridge.bridge-nf-call-ip6tables = 17 M2 I# v5 h' ~
net.bridge.bridge-nf-call-iptables = 1

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2023-4-3 21:36:59 | 显示全部楼层
docker info ! `' z3 f( Q! m/ ~6 _
Client:
1 u! _3 Y0 ?6 Z" @- w Context:    default
+ c1 o0 X% x- s! t  x Debug Mode: false! @/ s) K- N. M* ]' T
Plugins:- v( z: }& N8 [9 D/ u) o4 e/ D
  buildx: Docker Buildx (Docker Inc.)0 j& S( p, V7 Q) ?4 ]+ Y
    Version:  v0.10.4
* E  b( t% e0 R1 o% E    Path:     /usr/libexec/docker/cli-plugins/docker-buildx* o+ f7 u5 C+ h+ P" d& g0 I5 F
  compose: Docker Compose (Docker Inc.)% V' {7 Z1 ]0 v" h  V9 i/ y
    Version:  v2.17.22 w, D+ ]1 ~6 b/ f$ A0 ^% W
    Path:     /usr/libexec/docker/cli-plugins/docker-compose5 H+ R- P0 F: Y- {  m* w) `& F
  scan: Docker Scan (Docker Inc.)
) b2 l" {% H" h7 R" S- l    Version:  v0.23.0" h1 V; H& y. Q( \2 e: q+ i
    Path:     /usr/libexec/docker/cli-plugins/docker-scan
7 ~" {' D9 h: h( ^  w; q9 k$ E3 |% N8 d/ E: J
Server:
) A$ p0 r7 K' `9 l Containers: 9$ h- u  Y9 q) b& K+ h
  Running: 9
7 O$ M' E. N5 E# K/ ~# w  Paused: 0
* Q3 S- k, Z: B" `4 K  Stopped: 08 p) V3 X4 w: f9 I% {0 B
Images: 41
# ?3 X/ |$ w1 N8 F+ o6 D Server Version: 23.0.27 C, x3 `/ d8 c  H4 t: [
Storage Driver: overlay2
1 a% V5 v. K- s3 U/ S  f6 O  Backing Filesystem: xfs
5 t* |6 `$ D3 o# C$ M  Supports d_type: true+ u0 D+ l$ ?- N4 C% s6 N) g
  Using metacopy: false
- K% h' _! ?9 j* }# V2 _) S' `  Native Overlay Diff: true  f* s' [9 U$ a
  userxattr: false, }, k8 o, e  X7 p( X
Logging Driver: json-file" l) ]2 ?8 t0 u+ i4 H* a
Cgroup Driver: cgroupfs9 W/ z% j/ G/ y, ^
Cgroup Version: 1
- c, ^" K. u& O, k/ ]2 i4 x7 F, B Plugins:. T/ F: y0 F2 @3 Y7 J
  Volume: local& C3 ~) @  s( A) v/ F! {* E% e$ Q
  Network: bridge host ipvlan macvlan null overlay. E, j( e" f2 P* ~1 J! c7 H) P$ n
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog  b+ x- X8 S: D, e1 A
Swarm: inactive
! X, I' t( {. \& Y7 g Runtimes: io.containerd.runc.v2 runc
5 s9 M* J4 P+ g4 |3 p7 G$ l Default Runtime: runc- ?% j' `( g% p  d0 M
Init Binary: docker-init
" }, Y$ I1 F- ], O# [0 k/ A6 V  S containerd version: 1e1ea6e986c6c86565bc33d52e34b81b3e2bc71f
* z$ L/ B3 ~% v+ u( \+ [7 } runc version: v1.1.4-0-g5fd4c4d
5 Z/ N$ _0 g9 n1 {$ ^" Z+ u init version: de40ad0/ B6 s9 X7 b* J
Security Options:( A7 w6 J- e# L/ ]
  seccomp$ m+ F  _! n$ g+ o/ y8 j1 B
   Profile: builtin- [) q. B, y+ j( ~1 N( U1 i  ?2 X
Kernel Version: 4.18.0-373.el8.x86_64  V/ V* p) |/ U
Operating System: CentOS Stream 8  A  q) G6 s3 E6 h" M
OSType: linux- M+ e3 D/ |9 Q3 z  {  `1 `8 k
Architecture: x86_64
$ `& L2 p& z1 ~ CPUs: 2. v9 N! i1 D2 t3 t
Total Memory: 3.618GiB- O6 ^& f, b$ I, S7 G
Name: controller1, m! _; t  j" V" v& X6 A! ^7 y
ID: ee5d1ceb-511d-48d4-a98a-6976ff290a45
/ c" O9 y2 _7 u3 a/ o5 A' [ Docker Root Dir: /data/docker# T% @1 B7 B$ \. L$ V
Debug Mode: false" {4 ~6 X5 Y( _
Registry: https://index.docker.io/v1/7 Z! a$ a* x/ I9 o0 d
Experimental: false
6 N$ u$ d2 E7 i5 T' k& B8 o Insecure Registries:
* f2 K: P- ]7 m% w8 h7 y  127.0.0.0/8& j2 P1 }4 j6 X$ q+ Y  J
Registry Mirrors:
- U0 }$ J% B* G1 w8 ^; r' Q; c  https://iby0an85.mirror.aliyuncs.com/
4 w3 R8 o/ _5 Q* @5 H  https://registry.docker-cn.com/% _" r) k* v1 M# c6 A
  http://hub-mirror.c.163.com/
" M* d0 m0 ~$ H$ r# R  https://docker.mirrors.ustc.edu.cn/, v, x" N0 S4 q  e2 @
Live Restore Enabled: false
( U- X1 m" X$ f" S" {' G- A" L" w$ `  q' Y

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2023-4-3 21:40:26 | 显示全部楼层
$sudo sysctl net.bridge.bridge-nf-call-iptables=1
4 v# Z& \6 p, m3 ]+ A% G) Y( x# L* |0 P& P# u1 Y! g
$sudo sysctl net.bridge.bridge-nf-call-ip6tables=1
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 00:27 , Processed in 0.015719 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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