Not able to install docker compose even I am using sudo

I am docker desktop. and Please see the following command to install docker compose but it is failing .Please suggest

shyam@DESKTOP-OO7EVK2:~$ sudo apt install docker-compose
[sudo] password for shyam:
Sorry, try again.
[sudo] password for shyam:
sudo: 1 incorrect password attempt
shyam@DESKTOP-OO7EVK2:~$ PWD
PWD: command not found
shyam@DESKTOP-OO7EVK2:~$ pwd
/home/shyam
shyam@DESKTOP-OO7EVK2:~$

Check the compose plugin doc.

It seems to be docker compose installed. but I am seeing following error. Please assist me wit this password issue , I am using correct password but I facing issue

shyam@DESKTOP-OO7EVK2:~$ docker compose version
Docker Compose version v2.29.2-desktop.2
shyam@DESKTOP-OO7EVK2:~$ sudo apt-get install docker-compose-plugin
[sudo] password for shyam:
Sorry, try again.
[sudo] password for shyam:
Sorry, try again.
[sudo] password for shyam:
sudo: 3 incorrect password attempts
shyam@DESKTOP-OO7EVK2:~$

It seems to be docker compose installed. but I am seeing following error. Please assist me wit this password issue , I am using correct password but I facing issue

shyam@DESKTOP-OO7EVK2:~$ docker compose version
Docker Compose version v2.29.2-desktop.2
shyam@DESKTOP-OO7EVK2:~$ sudo apt-get install docker-compose-plugin
[sudo] password for shyam:
Sorry, try again.
[sudo] password for shyam:
Sorry, try again.
[sudo] password for shyam:
sudo: 3 incorrect password attempts
shyam@DESKTOP-OO7EVK2:~$

What are you trying to tell us? That you can not enter your password correctly?

This is a problem of your WSL installation. You believe your password is correct, but the sudo command in your wsl distribution disagrees with you. If you feel this a bug, please open an issue in the WSL GitHub repository: https://github.com/microsoft/WSL/issues

The password of WSL distributions are individual per WSL distribution, and they are not synched with the login password you use to log in into your Windows user.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.