Docker: Where did my image go

background

Nacos have been used in recent projects, so I plan to install a nacos in the local area to play. How to install it? Of course using docker. It is convenient and simple. To be honest, after installing docker, my ThinkPad, which has been used for 3 years, is really a bit stuck. Therefore, docker has not been running for a long time. If you will not install docker under windows, please see the following two articles:

problem

When I start docker, open the cmd window and enter docker images. Strange things happened,

There is no mirror image, this shouldn't be. I have pulled two images before, one is hello-world and the other is mysql: 8.0.
It may be that the mirror path is wrong, open the original article, look at the configuration,
and then modify it according to the previously set settings.

settings->daemon

After rebooting, the image is back.

Then the operation, nacos installed, and finished.

The next day, continue to open docker, run my nacos, ready to continue to study a wave of nacos.

Weird please! My mysql and nacos mirrors are gone, only one hello-world remains.

Continue to open settings-> daemon, and found that nothing has changed, and the configuration files are the same as yesterday.

solve

After a closer look, the value of experimental parameter becomes false.

Is it a problem with this parameter? Try to change it to true.

Don't say it, it really succeeded. The mirror is back.

what's the situation?

I searched the Internet all afternoon and found no relevant information.

Can only go to the official website to view a wave.

https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file

Found a description above:

The --metrics-addr option takes a tcp address to serve the metrics API. This feature is still experimental, therefore, the daemon must be running in experimental mode for this feature to work.

It probably means: --metrics-addr needs a tcp address to run the metrics API. This function is still in the experimental stage, therefore, the daemon must be run in experimental mode to work.

There is also a relevant explanation about this --metrics-addr:

To serve the metrics API on localhost:9323 you would specify --metrics-addr 127.0.0.1:9323, allowing you to make requests on the API at 127.0.0.1:9323/metrics to receive metrics in the prometheus format.

I think it should be accessed by default using localhost after the image in the docker container is started. If you want to use ip to access, you need to use this --metrics-addr.

In general, we must not only use localhost to access the service locally, but use ip to access this service elsewhere.

Docker research is still shallow, and can only be used as a reference. If you have a docker who has studied docker, you can leave a message to communicate.

Guess you like

Origin www.cnblogs.com/zhixie/p/12718483.html