DEV Community

Discussion on: Install Docker on Windows (WSL) without Docker Desktop

Collapse
 
ramachandran09 profile image
Ramachandran

Hi,

How I can use --password-stdin along with wsl?. I mean, can able to login with docker using the below command

wsl -d Ubuntu-18.04 docker -H unix:///mnt/wsl/shared-docker/docker.sock login -u AWS -p "" .dkr.ecr..amazonaws.com

But, with the above example I required to set the token with the command line. And, it gets stored for future use. So, I need use the --password-stdin instead. But, I'm not sure how to do that. Any suggestion?