问题:
执行
docker run --rm -p 8080:8080 -e ICODE=1A950AC1B142C227 cap1573/cap-micro --registry=consul --registry_address=192.168.0.123:8500 api --handler=api
报错:
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Get https://apis.imooc.com/?icode=1A200AC1B14BC22B: x509: certificate has expired or is not yet valid
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x1483a93]
goroutine 1 [running]:
main.get(0xc0000bcd50, 0x2e, 0x0)
/Users/cap/gowork/micro/main.go:54 +0xf3
main.main()
/Users/cap/gowork/micro/main.go:37 +0xc1
是否解决?
未解决。
其他:
amd64 即 x86架构。