Docker
mit Asp .Net Core
.Net 6 7 8
Fehlermeldung:
CTC1002
Visual
Studio container tools require Docker Desktop. To get it, see
https://go.microsoft.com/fwlink/?linkid=847268
|
https://www.docker.com/products/docker-desktop/
Dann starten von Docker Desktop:
The Getting Started project is a simple GitHub repository which
contains everything you need to build an image and run it as a container.
Clone the repository by running Git in a container.
In dem Docker Terminal
Microsoft Windows [Version 10.0.19044.2604]
(c) Microsoft Corporation. Alle Rechte vorbehalten.
C:\Users\Raimund>docker
run --name repo alpine/git clone https
://github.com/docker/getting-started.git
Unable to find image 'alpine/git:latest' locally
latest: Pulling from alpine/git
ca7dd9ec2225: Pull complete
eb878e0a08e4: Pull complete
b4f093b99828: Pull complete
Digest:
sha256:66b210a97bc07bfd4019826bcd13a488b371a6cbe2630a4
b37d23275658bd3f2
Status: Downloaded newer image for alpine/git:latest
Cloning into 'getting-started'...
C:\Users\Raimund>docker cp
repo:/git/getting-started/ .
C:\Users\Raimund>
|
cd getting-started
docker build -t docker101tutorial .
A
Docker image is a private file system just for your container. It provides all
the files and code your container needs.
Start
a container based on the image you built in the previous step. Running a
container launches your application with private resources, securely isolated
from the rest of your machine.
Danach kann man as Image speichern und verteilen
Save
and share your image on Docker Hub to enable other users to easily download and
run the image on any destination machine.
Nach dem Anmelden kann man das kostenlose Personal verwenden
Danach ist auf
https://hub.docker.com
der zentrale
Anlaufplatz für Docker Repositories, downloads und mehr