Closed mchassy closed 4 years ago
Error: Failed to launch chrome!
This seems to be your problem. It is trying to open a web browser for you to enter your credentials on on the Linux side. But you don't have a browser or X server set up in WSL.
There are a few things you can do here, in order from easiest to hardest:
I spent a couple weeks trying to set up WSL to do everything I needed. I had to install aws-azure-login on the Windows part of the machine, but not as a container. Not really a satisfactory solution. Even getting docker to integrate nicely meant using edge versions of both Docker and WSL. I'm sure that in 12 months, this will all work much better. But in the meantime, I have switched to a Linux native laptop, and I am much happier that way.
Windows version and build
Version 2004 (OS Build 19035.1)
Docker Edge version2.1.6.1
Ubuntu 18.04 on WSL 2I am setting up a model for a dev laptop for my company. One part of that is being able to use single sign on to access our aws accounts. There is a node.js utility called aws-azure-login which allows you to do this from the terminal. Installing the tool into a given system is pretty hairy because of all of the dependencies and I struggled a few days trying to make this work in WSL 1. Finally, I found a containerised version which worked immediately. But when I switched to WSL 2, it stopped working.
Method of accessing docker from the WSL
Method of invoking aws-azure-login config
This works fine.
Method of invoking aws-azure-login
What should happen: the SSO should succeed.
Attempt with --mode=gui
Attempt with --mode=debug
https://gist.github.com/mchassy/865a65f2b00959394b6f3b44f1606673.js