gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

Can't login to google with docker container...

Open chrissound opened this issue 1 month ago • 5 comments

What happened?

docker run --rm -it us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.18.4
>  Login with Google
> Logging in with Google... Restarting Gemini CLI to continue.

And just like that the container terminates.

What did you expect to happen?

A login flow, for the container not to exit immediately.

Client information

Client Information

Run gemini to enter the interactive CLI, then run the /about command.

> /about
# paste output here

Login information

No response

Anything else we need to know?

No response

chrissound avatar Nov 29 '25 09:11 chrissound

@chrissound can you provide more info about your client, what os are you using?

galz10 avatar Dec 01 '25 19:12 galz10

What do you mean by client? Host OS is Nixos 22.05 ideally there would be a --verbose or some way to see the logs to figure out why it exits...

Exit code is 42:

docker run --rm -it us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.18.4
> 1. Login with Google
echo $?
42

chrissound avatar Dec 02 '25 11:12 chrissound

Similar issue on FreeBSD headless system with first time login. No URL (for a manual login) or output shown. While I understand the need to be able to authenticate, a terminal app should be able to provide option for headless systems.

Was expecting to see a URL that could be loaded, then a token (or something) that could be pasted back to the terminal to confirm authentication.

Tigger-oN avatar Dec 03 '25 11:12 Tigger-oN