- Open PowerShell as Administrator.
- Run the following command to enable WSL:
wsl --install --no-distribution
- Restart your computer when prompted.
- After the restart, open PowerShell as Administrator again.
- Set WSL to use version 2 by default:
wsl --set-default-version 2
- Open Powershell as Administrator.
- Run this all in one script to install the docker-lite WSL distribution:
./setup.ps1 - Verify the installation by checking the Docker version:
docker --version
- Restart your computer to ensure all changes take effect.
-
In your terminal, run the following command to deploy Portainer:
docker run -d -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce
-
Open your web browser and navigate to
http://localhost:9000to access the Portainer web interface.