可以看到本地image已经build成功。可以直接启动使用
docker run -it --rm -p8080:8080 moxingwang/jibtest复制代码启动成功后同样可以直接访问http://localhost:8080/sw/swagger-ui.htmlswagger页面。 常见错误常见错误1 Failed to execute goal com.google.cloud.tools:jib-maven-plugin:0.9.6:build (default-cli) on project jib: Build image failed, perhaps you should set a credential helper name with the configuration '' or set credentials for 'registry.hub.docker.com' in your Maven settings: Unauthorized for registry.hub.docker.com/moxingwang/jibtest: 401 Unauthorized