Explain the function of static keyword and final keyword in Java in detail>>>
Here’s the command:
docker run -itd –name test01 ubuntu
Error:
Solution:
Add the following configuration in/etc/docker/daemon.json:
[ root@node01 docker]# cat daemon.json
{“debug”:true,”registry-mirrors”: [” http://hub-mirror.c.163.com “],”insecure-registries”:[“registry-1.docker.io”]}
It mainly includes “debug”: true and “insure registers”: [“registry-1. Docker. IO”]
“registry-mirrors”: [” http://hub-mirror.c.163.com “] is to use the domestic Netease image for acceleration
later, I found that the above method still failed. Finally, I used the alicloud image to do it:
uses his Alipay account to log on to Ali cloud: https://www.aliyun.com/
Then visit the following address: https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors
As shown in the figure below:
Everyone’s image address is different. Copy the code in the bottom red box to change the image into an alicloud image
It’s done