Created
March 27, 2018 08:43
-
-
Save rkttu/2d551d27aa70311c7963cbf2b26ae435 to your computer and use it in GitHub Desktop.
Run Docker Daemon in WSL Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
pushd "%~dp0" | |
cls | |
echo This script allows you to run docker daemon. | |
echo. | |
net session >nul 2>&1 | |
if not %errorLevel% == 0 ( | |
echo To run this script, you must run it as a user with administrative privileges. | |
pause >nul | |
goto end | |
) | |
ubuntu.exe -c "sudo service docker start && sudo docker ps > /dev/null && echo From now on, you can minimize this window and use the docker in other Ubuntu WSL sessions. If you are using a version of Windows 10 RS3 or earlier, do not close this window. && tail -f /dev/null" | |
:end | |
popd | |
@echo on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment