如果在 Raspberry Pi 或者 ARM的服务上运行Docker,在运行镜像时候可能会遇到下面错误。
WARNING: The requested image’s platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
2022-11-04 21:38:43.426 WARN 46195 --- [ main] o.s.boot.StartupInfoLogger : InetAddress.getLocalHost().getHostName() took 5002 milliseconds to respond. Please verify your network configuration (macOS machines may need to add entries to /etc/hosts).
2022-11-04 21:38:48.433 WARN 46195 --- [ main] o.s.boot.system.ApplicationPid : ManagementFactory.getRuntimeMXBean().getName() took 5003 milliseconds to respond. This may be due to slow host name resolution. Please verify your network configuration (macOS machines may need to add entries to /etc/hosts).