Chocolatey
With
Chocolatey, Docker can be installed with one of the following commands:
choco install -y docker-desktop
choco install -y docker-toolbox
Starting Desktop Container
After installing Docker with Chocolatey, Docker Desktop can be started with
C:\Users\Rene> "\Program Files\Docker\Docker\Docker Desktop.exe"
The
user that tries to start Docker Desktop needs to be
docker-users group, otherwise, an
Access denied message is shown:
Getting started
When Docker Desktop is started the first time, it leads the user through a getting started process.
In order to complete the getting started process,
Git is needed.
git clone https://github.com/docker/getting-started.git
cd getting-started
In an elevated prompt (or being assigned to the docker-users group?):
docker build -t docker101tutorial .
docker run -d -p 80:80 --name docker-tutorial docker101tutorial
Share the created image on Docker Hub (requires an account there)
docker tag docker101tutorial %username%/docker101tutorial
docker push %username%/docker101tutorial
View newly created
image:
C:\users\rene\getting-started> docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker101tutorial latest 818a346d4e4e 8 minutes ago 27.3MB
<none> <none> f1457fda2233 8 minutes ago 85.5MB
<none> <none> 45955d190cf3 8 minutes ago 224MB
<none> <none> a0b974633fad 8 minutes ago 72MB
node 12-alpine 1f52b7199ba6 2 days ago 89.3MB
python alpine 0f03316d4a27 10 days ago 42.7MB
nginx alpine 6f715d38cfe0 5 weeks ago 22.1MB