Unable to auth via docker

hello and welcome to the forum,

so you want to create and/or authorize a remote from inside docker,
instead of following the rclone docs?

have you seen
https://forum.rclone.org/t/it-is-possible-to-run-rclone-inside-the-docker-container-and-mount-the-folder-to-host/31268/3