I cannot access the HTTP server within Docker, even with the port forwarded.
I did come across Can't access 127.0.0.1:port when using docker which indicates it should work in 1.58 (without any reference), but 1.58 doesn't seem to work for me.
Using the official docker image:
rclone v1.58.1 - os/version: alpine 3.15.4 (64 bit) - os/kernel: 5.4.0-120-generic (x86_64) - os/type: linux - os/arch: amd64 - go/version: go1.18.1 - go/linking: static - go/tags: none
docker exec -it sync_gdrive_ohn rclone authorize "drive" "eyJj......asdf"
[GDrive_setup] type = drive client_id = NOPE client_secret = NOPE scope = drive
2022/06/28 17:46:37 NOTICE: Make sure your Redirect URL is set to "http://127.0.0.1:53682/" in your custom config. 2022/06/28 17:46:37 NOTICE: Please go to the following link: http://127.0.0.1:53682/auth?state=ihcW2NL0mmsjOc_8lW3chA 2022/06/28 17:46:37 NOTICE: Log in and authorize rclone for access 2022/06/28 17:46:37 NOTICE: Waiting for code...
I noticed when messing with the webgui, it was necessary to set
--rc-addr :5572 to bind to
0.0.0.0... There doesn't seem to be any such option for the authorize server, and thus I believe it is not possible to reach the server in the container, even with forwarding.
Any workaround suggestion would be great, or am I simply missing something? Other than volumes and ports, there are no relevant compose settings, and I can see the port forwarded fine in
I did target
1.57.0 via docker and was able to get the classical google URL instead of the local authorize server url, but this is a bit more rigamarole than expected.