Skip to content

Instantly share code, notes, and snippets.

@rkttu
Created March 27, 2018 08:43
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rkttu/2d551d27aa70311c7963cbf2b26ae435 to your computer and use it in GitHub Desktop.
Save rkttu/2d551d27aa70311c7963cbf2b26ae435 to your computer and use it in GitHub Desktop.
Run Docker Daemon in WSL Ubuntu
@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