Skip to content

Instantly share code, notes, and snippets.

@satyaki1
Last active July 10, 2020 07:10
Show Gist options
  • Select an option

  • Save satyaki1/04160e4f465d1869aa00362b24177e96 to your computer and use it in GitHub Desktop.

Select an option

Save satyaki1/04160e4f465d1869aa00362b24177e96 to your computer and use it in GitHub Desktop.
Install and Uninstall Docker in Windows WLS

Installation steps of Docker in Linux Subsystem in Windows

I'm putting the neccessary commands here only.

Verify that you now have the key with the fingerprint 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88, by searching for the last 8 characters of the fingerprint.

Installation in complete but docker daemon isn't running yet

  • export DOCKER_HOST=localhost:2375
  • echo "export DOCKER_HOST=localhost:2375" >> ~/.bash_profile

Caution

Make sure you click checkbox in your Windows Docker Desktop for Expose daemon on tcp://localhost:2375/ without TLS

Uninstallation steps of Docker in Linux Subsystem in Windows

I'm putting the neccessary commands here

  • dpkg -l | grep -i docker
  • sudo apt-get purge -y docker-engine docker docker.io docker-ce
  • sudo apt-get autoremove -y --purge docker-engine docker docker.io docker-ce
  • sudo rm -rf /var/lib/docker /etc/docker
  • sudo rm /etc/apparmor.d/docker
  • sudo groupdel docker
  • sudo rm -rf /var/run/docker.sock
  • sudo rm -rf /usr/local/bin/docker-compose
  • sudo rm -rf /etc/docker
  • sudo apt-get purge docker-ce-cli
  • sudo apt-get --purge remove docker-ce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment