Firebase login in docker toolbox

Posted on by 42 comments

The exercise is trying to resolve the Firebase login callback issue in docker; my system setup is VirtualBox with Docker toolbox.
Let’s start with the login command:

Then I copy the long URL, and paste it to a browser window in host machine, allow the FirebaseCLI access, the authentication is working fine, but failed at callback. That is due to the setup is docker with VirtualBox, so localhost is not same as the docker machine, which in my case is, and HTTP://localhost:9005 is not accessible. If I try to modified the URL with replacing the localhost with docker machine IP, a 400 OAuth2 error will be returned.

After some trying, and managed to get it working with steps below,

  • Copy the long URL and paste it to a browser window in host machine
  • Follow the steps to complete the authentication
  • The callback failed with URL HTTP://localhost:9005?state=…..
  • Replace localhost with the docker machine IP in the URL and click enter

Now you will receive a successful message in the browser window and docker terminal.

Category: Docker

42 comments on “Firebase login in docker toolbox

  1. Savings Account

  2. Sleek

  3. synthesize

  4. Sleek

  5. EXE

  6. Plastic

  7. matrix

  8. Granite

  9. Buckinghamshire

  10. Libyan Arab Jamahiriya

  11. grey

  12. connect

  13. wireless

  14. Fantastic Concrete Car

  15. AGP

  16. calculating

  17. Movies

  18. Unbranded Soft Chair

  19. Operative

  20. Sri Lanka Rupee

  21. Cayman Islands Dollar

  22. virtual

  23. cultivate

  24. Boliviano Mvdol

  25. Investment Account

  26. invoice

  27. functionalities

  28. Intelligent Cotton Salad

  29. Associate

  30. Pennsylvania

  31. input

  32. Clothing

  33. Liaison

  34. Awesome Concrete Mouse

  35. Lakes

  36. orange

  37. bandwidth

  38. payment

  39. Licensed Cotton Salad

  40. Corporate

  41. Station

Leave a Reply

Your email address will not be published. Required fields are marked *