Skip to content

Instantly share code, notes, and snippets.

@aduzsardi
Last active August 4, 2017 08:19
Show Gist options
  • Save aduzsardi/9dca12358282067029510069a895c634 to your computer and use it in GitHub Desktop.
Save aduzsardi/9dca12358282067029510069a895c634 to your computer and use it in GitHub Desktop.
docker on bash on windows
# Enable CPU virtualization capabilities from Bios
# Install docker for windows
# Run windows executables from bash
PATH="$HOME/bin:$HOME/.local/bin:$PATH"
PATH="$PATH:/mnt/c/Program\ Files/Docker/Docker/resources/bin"
--------------------------------------------------
# Install packages to allow apt to use a repository over HTTPS
$ sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
# Add Docker's official GPG key
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# Set up the repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
# Update source lists
sudo apt-get update
# Install Docker
sudo apt-get install docker-ce
export DOCKER_HOST='tcp://0.0.0.0:2375'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment