This guide explains how to configure Docker to run commands without using sudo by adding the current user to the Docker group.
docker sudo groupadd docker
docker group exists getent group docker
docker:x:999:
docker group sudo gpasswd -a $USER docker
Adding user development to group docker
wsl --shutdown
sudo service docker start
* Starting Docker: docker [ OK ]
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES