Created
April 7, 2019 13:00
-
-
Save tonkatsu7/fe13d45819c6f1b1f297f86da5322287 to your computer and use it in GitHub Desktop.
Connect Docker CE in WSL to Docker for Windows
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
# https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly | |
apt update -y | |
apt install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - | |
apt-key fingerprint 0EBFCD88 | |
add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
apt update -y | |
apt install -y docker-ce | |
pip install docker-compose | |
echo "export DOCKER_HOST=tcp://localhost:2375" >> ~/.bashrc && source ~/.bashrc | |
docker info | |
docker-compose --version | |
# didn't bother performing the steps to mount windows volumnes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment