Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7035

Ubuntu Error "The command 'docker' could not be found in this WSL 2 distro."

$
0
0

I'm running WSL 2 on Ubuntu and having some issues getting docker up and running on my computer. I have Docker Desktop installed and running in the background, and I also have WSL integration enabled with Ubuntu.

When I try to run simple docker commands, such as docker --version, I receive this error:

The command 'docker' could not be found in this WSL 2 distro.We recommend to activate the WSL integration in Docker Desktopsettings.

For details about using Docker Desktop with WSL 2, visit:

https://docs.docker.com/go/wsl2/

I have already visited the link and followed all the instructions it gives, enabling WSL integration with Ubuntu as shown here:

Docker Desktop Settings screenshot

However the error I receive is still the same. Does anyone know how to fix this?

Note: I can run Docker commands (such as docker --version) in PowerShell and Command Prompt, but it is unrecognized in Ubuntu.


Viewing all articles
Browse latest Browse all 7035

Latest Images

Trending Articles



Latest Images