|
|
楼主 |
发表于 2022-6-22 12:44:35
|
显示全部楼层
解决过程:
, b G. s. U( c9 b编辑文件:9 H5 ?: Y+ ]9 v" z6 v; {: C+ ~
[root@openstack ~]# vim /etc/docker/daemon.json
% Z) E6 f p# k z' C; u
6 m' X0 L g9 A" w; v; L+ h{
\" N) C7 J) H2 q* e( x$ [5 S "bip": "150.17.10.1/16"7 ^4 R7 O6 [$ I
}
( A/ o* g( ~2 W5 M6 y0 i; K8 G' w5 l( A$ K% Z h) H; d( t
[root@openstack ~]# vim /etc/systemd/system/docker.service.d/kolla.conf
8 l0 y9 a. E6 ^5 d% a) E3 M W5 F- S7 q3 d' ^( B7 H# R1 D8 C2 P
[Service]' G: A' t2 V% p5 b* H( r& h
MountFlags=shared
: G, O- y% s. k+ B7 dExecStart=
1 T; @: T" X8 q% lExecStart=/usr/bin/dockerd --insecure-registry xx.xx.xx.xx:4000 --log-opt max-file=5 --log-opt max-size=50m
3 i* k+ y3 L8 V1 J( Q* a$ d. Z; U
# r. @+ b g7 f' f9 a9 O系统重新reload; o \* h& l9 D) y; Q* {) B+ j
systemctl daemon-reload- e& X$ [* L- ~- n1 s' m$ O* z
重启docker服务:
* |7 ~0 L: P4 o8 l systemctl restart docker.service
! T# C4 B/ Z- T) o" D检查:
- s: _' u9 E, k. d/ h3 ^/ j! U3 i[root@openstack ~]# docker ps ) R$ I7 t) {# t& G! U6 W
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
$ k W, ]1 [* @9 V' _3 y1 P# j
0 y6 }2 \& @6 k7 p, `2 z p
3 ~0 G& I' n; X5 b$ |[root@openstack ~]# docker info
* M8 ~+ u, w# uClient:1 O, b! g: U5 V
Context: default- l2 X- @, W! A7 r" V4 |+ e( _- u2 n
Debug Mode: false
3 m" r$ j- A( n* U9 g Plugins:2 F9 q! [! D4 ]2 X0 w5 k$ ?8 V
app: Docker App (Docker Inc., v0.9.1-beta3)
2 ^; E! Q* d# x0 c: A* j$ D buildx: Docker Buildx (Docker Inc., v0.8.2-docker)9 X, G6 Z2 {/ Z6 z! v/ ^: k1 i
scan: Docker Scan (Docker Inc., v0.17.0)
, |" @# T# @0 s7 Z; u( ~5 y( Z& _$ f$ {
Server:
( x6 e, M- y/ `+ `+ G Containers: 31
. M( |5 u( @3 P" ] Running: 30
, H7 {. a9 h& c* y2 Q5 _) y Paused: 0
8 U2 K* B# T; G Stopped: 1
: ~3 ?( Q+ z r+ s( B0 J- Y Images: 31' D, q! |) {, t' y. m) l
Server Version: 20.10.17( Y, M' R, d' z0 H' M: I$ J
Storage Driver: overlay2# S9 j; ]* w7 } ^
Backing Filesystem: xfs9 H' I2 @* U: M; w B0 L
Supports d_type: true
/ s3 z2 [4 R: Q) H. ^2 z Native Overlay Diff: true7 `* K) A" R _ b: ` ~8 e: P/ u* J
userxattr: false/ k8 a X5 N) D6 \% O
Logging Driver: json-file' A. i, ~9 y$ A, |$ E; @1 Q
Cgroup Driver: cgroupfs/ h5 w$ e) Y2 p
Cgroup Version: 1- e9 b/ ?; e4 k k; j* X
Plugins:
. d l. b/ V# _! E% P/ w/ ~0 m0 P# n Volume: local
) ~2 b/ ^8 u6 H0 H1 d% n2 y, }* d Network: bridge host ipvlan macvlan null overlay
6 z$ w+ L* c) z1 _% D) j Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
4 d+ `) x# M0 s( @/ ` Swarm: inactive' b! l4 B1 b5 [' O F- S; m
Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
8 R% K3 }9 o& f r" e x Default Runtime: runc: ?' N! x, ` `% L4 T2 a
Init Binary: docker-init1 C, B( D* ?4 V" N
containerd version: 10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1
Y' E, @, l. I runc version: v1.1.2-0-ga916309
5 e/ t& }& U) h, @. y6 J7 r init version: de40ad0
! U1 s' D; D2 `% j( q% R' s Security Options:
1 x: W' F7 F9 k3 n9 L) j seccomp
) h+ _& X, U7 R Profile: default$ z; I4 t9 n4 U1 P* H* B6 j8 F& p
Kernel Version: 3.10.0-1160.el7.x86_64) a& K. ^6 G! M+ D8 O# v. W) N
Operating System: CentOS Linux 7 (Core)$ f" D: D2 a5 f- F9 I1 z
OSType: linux
% ^4 U8 T# K# E3 ?: o3 }, ^, z Architecture: x86_64( f( R+ z0 \2 \; i- g z
CPUs: 16
. r; S+ L1 C7 C4 t1 k Total Memory: 15.51GiB1 D. R I* |! }+ N h$ |+ R
Name: openstack.novalocal
+ ?: d) p* i0 |+ O$ \3 O0 O# s ID: IL2Z:QYIC:CVO4:DKSU:RAVA:ONC2:ZSBT:JLHA:FBWV:JY7W:E7SS:W7AA
' }" k4 q0 T/ B& u/ W Docker Root Dir: /var/lib/docker- u; h4 r* L* x7 w! U
Debug Mode: false# p: h! N4 M5 c6 Q% j6 o' c W
Registry: https://index.docker.io/v1/
% W9 b( o9 Z3 t/ q; f, y Labels:
! `4 B) c [* b" Y- Q( `8 E Experimental: false
9 R( ~" o0 S, G: J" G Insecure Registries:5 ]4 a; I% v5 P
192.168.0.75:4000
2 q2 z* m/ V4 ^: t4 F6 Z 127.0.0.0/84 S9 Y( B7 Y) U
Live Restore Enabled: false3 j5 z$ E L3 a, X/ [" L
: M' c: g" l D9 s5 O3 @
|
|