docker 往生产环境push image失败,报错如下:
[INFO] ------------------------------------------------------------------------
[INFO] Finished at: 2022-06-29T09:20:03+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
网上普遍都说是要修改daemon.json文件,安装他们说的方法,添加镜像仓库,然后重启docker,但是发现还是不行,后来认真看了一下,想着之前就没有问题,那么是不是需要重启192.168.0.45服务器上的docker就可以了,就试了一下,果然是docker重启一下就可以了!
最终的解决方案: 重启docker systemctl restart docker