Benutzer-Werkzeuge

Webseiten-Werkzeuge


benutzer:itbs:docker:use

bauen

cd Projectfolder

# have the src and co
Dockerfile erstellen!

docker build –tag hello-world .

docker images

containername docker run -p 8080:80 –name hello -d hello-world

docker ps -a # mita docker exec -it <mycontainer> bash

docker start hello docker stop hello docker rm hello

Push a Docker Image

https://login.docker.com

Create Repository choose your name and the name of the new Image Description as one line make it private or public

Dockerhub can listen to github.com and any time on push it starts Tests and build.

hit save

add username to imagename with tag

docker –tag hello-world mrbit42/hello-world

docker push mrbit42/hello-world

docker pull mrbit42/hello-world:latest

/var/services/web/dokuwiki/data/pages/benutzer/itbs/docker/use.txt · Zuletzt geändert: 2024/01/08 21:20 von itbs