An Interest In:
Web News this Week
- March 21, 2024
- March 20, 2024
- March 19, 2024
- March 18, 2024
- March 17, 2024
- March 16, 2024
- March 15, 2024
August 19, 2022 11:49 am GMT
Original Link: https://dev.to/fanmixco/how-to-run-docker-commands-in-cmdpowershell-from-docker-using-wsl2-5h65
How to run Docker commands in CMD/PowerShell from Docker using WSL2
In the last tutorial, we learned how to create Docker images without Docker Desktop in Windows. However, this can break our daily duties, especially if we have automated anything. This can be fixed in three steps:
1) Start Docker in Ubuntu using:
sudo dockerd
2) Open a new CMD/PowerShell window without closing the Ubuntu one.
3) Add the prefix wsl before every docker command and run them.
wsl docker --versionwsl docker --help
And that's all. You can find other tutorials on how to remove the prefix, but this is the easiest and fastest option.
Follow me at:
Original Link: https://dev.to/fanmixco/how-to-run-docker-commands-in-cmdpowershell-from-docker-using-wsl2-5h65
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To