? ? ? ? ? ? ? ? ? ??
docker實(shí)戰(zhàn)(一):centos7 yum安裝docker
docker實(shí)戰(zhàn)(二):基礎(chǔ)命令篇
docker實(shí)戰(zhàn)(三):docker網(wǎng)絡(luò)模式(超詳細(xì))
docker實(shí)戰(zhàn)(四):docker架構(gòu)原理
docker實(shí)戰(zhàn)(五):docker鏡像及倉(cāng)庫(kù)配置
docker實(shí)戰(zhàn)(六):docker 網(wǎng)絡(luò)及數(shù)據(jù)卷設(shè)置
docker實(shí)戰(zhàn)(七):docker 性質(zhì)及版本選擇
認(rèn)知升維: 道、法、術(shù)、器、勢(shì)
一: 停掉服務(wù)
systemctl stop docker
[root@www ~]# systemctl stop docker
[root@www ~]# systemctl status docker
● docker.service - Docker Application Container Engine
? ?Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
? ?Active: inactive (dead) since 三 2023-08-16 15:12:05 CST; 5s ago
? ? ?Docs: http://docs.docker.com
? Process: 1208 ExecStart=/usr/bin/dockerd-current --graph /data/docker_data --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-current --init-path=/usr/libexec/docker/docker-init-current --seccomp-profile=/etc/docker/seccomp.json $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES (code=exited, status=0/SUCCESS)
?Main PID: 1208 (code=exited, status=0/SUCCESS)
8月 16 14:29:48 www.yhchange.com dockerd-current[1208]: time="2023-08-16T14:29:48.315635031+08:00" level=info msg="Daemon has completed initialization"
8月 16 14:29:48 www.yhchange.com dockerd-current[1208]: time="2023-08-16T14:29:48.315710607+08:00" level=info msg="Docker daemon" commit="7d71120/1.13.1" graphdriver=overlay2 version=1.13.1
8月 16 14:29:48 www.yhchange.com dockerd-current[1208]: time="2023-08-16T14:29:48.349321307+08:00" level=info msg="API listen on /var/run/docker.sock"
8月 16 14:29:48 www.yhchange.com systemd[1]: Started Docker Application Container Engine.
8月 16 15:07:36 www.yhchange.com dockerd-current[1208]: time="2023-08-16T15:07:36.651328206+08:00" level=error msg="Handler for POST /v1.26/containers/89da1fb6dcb9/start returned error: No such container: 89da1fb6dcb9"
8月 16 15:12:04 www.yhchange.com systemd[1]: Stopping Docker Application Container Engine...
8月 16 15:12:04 www.yhchange.com dockerd-current[1208]: time="2023-08-16T15:12:04.294749387+08:00" level=info msg="Processing signal 'terminated'"
8月 16 15:12:04 www.yhchange.com dockerd-current[1208]: time="2023-08-16T15:12:04.373947579+08:00" level=info msg="stopping containerd after receiving terminated"
8月 16 15:12:04 www.yhchange.com dockerd-current[1208]: time="2023-08-16T15:12:04.374632569+08:00" level=fatal msg="containerd: serve grpc" error="accept unix /var/run/docker/libcontainerd/docker-containerd.sock: use of close...work connection"
8月 16 15:12:05 www.yhchange.com systemd[1]: Stopped Docker Application Container Engine.
Hint: Some lines were ellipsized, use -l to show in full.
?
二:? ? 停掉網(wǎng)卡
[root@www ~]# ifconfig docker0 down
三:??刪除網(wǎng)卡?
[root@www ~]# brctl delbr docker0
[root@www ~]# ifconfig
ens32: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> ?mtu 1500
? ? ? ? inet 192.168.1.120 ?netmask 255.255.255.128 ?broadcast 192.168.1.127
? ? ? ? inet6 2409:8a00:79aa:3f80:20c:29ff:fe5b:9ec1 ?prefixlen 64 ?scopeid 0x0<global>
? ? ? ? inet6 fe80::20c:29ff:fe5b:9ec1 ?prefixlen 64 ?scopeid 0x20<link>
? ? ? ? ether 00:0c:29:5b:9e:c1 ?txqueuelen 1000 ?(Ethernet)
? ? ? ? RX packets 3136 ?bytes 228338 (222.9 KiB)
? ? ? ? RX errors 0 ?dropped 0 ?overruns 0 ?frame 0
? ? ? ? TX packets 1509 ?bytes 285259 (278.5 KiB)
? ? ? ? TX errors 0 ?dropped 0 overruns 0 ?carrier 0 ?collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> ?mtu 65536
? ? ? ? inet 127.0.0.1 ?netmask 255.0.0.0
? ? ? ? inet6 ::1 ?prefixlen 128 ?scopeid 0x10<host>
? ? ? ? loop ?txqueuelen 1000 ?(Local Loopback)
? ? ? ? RX packets 0 ?bytes 0 (0.0 B)
? ? ? ? RX errors 0 ?dropped 0 ?overruns 0 ?frame 0
? ? ? ? TX packets 0 ?bytes 0 (0.0 B)
? ? ? ? TX errors 0 ?dropped 0 overruns 0 ?carrier 0 ?collisions 0
?文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-662624.html
? ? ? ? ??文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-662624.html
到了這里,關(guān)于Centos7安裝docker后默認(rèn)開啟docker0的網(wǎng)卡|卸載默認(rèn)網(wǎng)卡的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!