问题1
failed to register layer: Error processing tar file(exit status 1): write /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.352.b08-2.el7_9.x86_64/jre/lib/amd64/server/libjvm.so: no space left on device
出现上述报错信息,原因是docker存储空间满了,需要清理。
解决方案:
执行以下命令即可:
docker system prune -a
问题2:
[root@localhost ~]# docker pull nacos/nacos-server
Using default tag: latest
Error response from daemon: Get “https://registry-1.docker.io/v2/”: x509: certificate has expired or is not yet valid: current time 2022-03-17T03:46:45+08:00 is before 2022-10-31T00:00:00Z
出现上述报错信息,原因是系统时间不对,更新一下就好了
解决方案:
# 查看时间是否正确
[root@localhost ~]# date
2022年 03月 17日 星期四 03:49:53 CST
# 执行系统时间更新
[root@localhost ~]# ntpdate cn.pool.ntp.org
-bash: ntpdate: 未找到命令
# 安装ntpdate命令
[root@localhost ~]# yum install ntpdate
# 再次执行系统时间更新
[root@localhost ~]# ntpdate cn.pool.ntp.org
28 Dec 00:46:23 ntpdate[2084]: step time server 94.237.64.20 offset 24699327.367398 sec
问题3:
[root@localhost ~]# docker start nacos
Error response from daemon: driver failed programming external connectivity on endpoint nacos (0b28175b9979732360156bbfe23cc4a32130cee32dd42ebe669f9fd8d751b99a): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8848 -j DNAT --to-destination 172.17.0.2:8848 ! -i docker0: iptables: No chain/target/match by that name.
(exit status 1))
启动nacos服务时,报:iptables: No chain/target/match by that name。。可能是iptables有问题
解决方案
# 把docker服务stop
[root@localhost ~]# systemctl stop docker
# 把docker服务stop
[root@localhost ~]# systemctl stop docker.socket
# 保存iptables的表配置到/etc/sysconfig/iptables
[root@localhost ~]# iptables-save > /etc/sysconfig/iptables
# 把docker服务start
[root@localhost ~]# systemctl start docker
# docker开机自动启动
[root@localhost ~]# systemctl enable docker