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
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