我想在docker上访问Spring Boot应用程序。这是一项获取数据并将其写入Google工作表的服务。
每当我访问 docker-ip:mask / serviceName 时,都会收到如下消息:
Please open the following address in your browser:
https://accounts.google.com/o/oauth2/auth?access_type=online&client_id=830850041562-rttv12d04u8gk3doatdif61453g8ulaf.apps.googleusercontent.com&redirect_uri=http://localhost:PORT/Callback&response_type=code&scope=https://www.googleapis.com/auth/drive%20https://www.googleapis.com/auth/spreadsheets
每次端口都是一个随机的空端口。
我的应用的结构如下:
src
|-->main>...
| |--->resources>META-INF>credentials.json
|-->Dockerfile
在本地运行该服务时,即使在私有选项卡中也可以访问我的服务,而无需出现该服务或无需登录。 但是,当我通过Docker运行它时,我会在日志中得到它(没有弹出窗口或任何东西)。
关于如何解决此问题的任何想法?
谢谢
Komasutra