Skip to content

Instantly share code, notes, and snippets.

Forked from sgtoj/
Created December 2, 2019 13:22
What would you like to do?
Ubuntu for Windows: Setup Docker for WSL
# install docker client
curl > ~/docker.tar.gz
tar xzvf ~/docker.tar.gz
sudo mv ~/docker/docker /usr/local/bin/docker
rm -rf ~/docker
rm -f ~/docker.tar.gz
# install docker-compose client
curl -L > ~/docker-compose
chmod +x ~/docker-compose
sudo mv ~/docker-compose /usr/local/bin/docker-compose
# point client to docker engine running in windows
echo "DOCKER_HOST=tcp:// ; export DOCKER_HOST" >> ~/.bashrc
source ~/.bashrc
# test clients
docker --version
docker-compose --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment