docker reports errors and organizes

  • 一、image has dependent child images

    Mirrors are dependent on each other and cannot be deleted arbitrarily. For example, the B mirror image is made on the basis of the A mirror image.
  1. Package image B docker save -o ./B:latest B:latest
  2. Delete mirror B, A docker rmi -f B:latest,docker rmi -f A:latest
  3. Reload B docker load < B:latest

  • 二、DNS lookup error

    This is a problem with the basic image of alpine. The ping URL succeeds the first time, but it fails the second time. It takes a while to get better.
    Solution: Modify vi /etc/resolv.confthe same address and within the native file. (One of mine is 192.168.0.1, one is 192.168.65.1). If you make a Dockerfile, just enter the address of the echo machine.

  • 三、standard_init_linux.go:211: exec user process caused “exec format error”

    Because I use raspberry pie aarch64, that is, arm64 , some images are not compatible across platforms.
    You can view the mirror information: in docker inspect 镜像 | grep Architecture
    fact, you can select the platform by parameters when pulling the mirrordocker pull --platform=arm64 镜像:版本号

  • 四、docker.socket: Failed with result ‘service-start-limit-hit’

    Docker failed to start. journalctl -xeChecking the above information shows that
    /etc/docker/daemon.jsonthere is a problem with the configuration. You can rename or delete it and start it again.

Guess you like

Origin blog.csdn.net/z772532526/article/details/114634750