Skip to content

Instantly share code, notes, and snippets.

@xingh
Last active March 26, 2016 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xingh/89d118acd9186294ddc2 to your computer and use it in GitHub Desktop.
Save xingh/89d118acd9186294ddc2 to your computer and use it in GitHub Desktop.
Good Reference at "Get Started with Docker on Windows using Chocolatey"
https://stefanscherer.github.io/get-started-with-docker-on-windows-using-chocolatey/
# Install Chocolatey in Powershell
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
# OR in Command
# @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
# Install docker
choco install -y virtualbox
choco install -y docker
choco install -y docker-machine
choco install -y docker-compose
# create virtual machine
docker-machine create -d virtualbox dev
docker-machine ls
# start virtual machine
docker-machine start dev
docker-machine ls
# bind to virtual machine
docker-machine env --shell powershell dev | iex
# startup an ubuntu image
docker run --rm -it ubuntu bash
# startup an aspnetboilerplate (https://github.com/peterblazejewicz/aspnet5-docker-boilerplate)
git clone https://github.com/peterblazejewicz/aspnet5-docker-boilerplate.git
cd AspNetDockerBoilerplate
docker build -t yourname/aspnet_boiler .
docker run -t -d -p 8080:5000 yourname/aspnet_boiler
# look at http://192.168.99.100:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment