Docker: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Geist (Diskussion | Beiträge) |
Geist (Diskussion | Beiträge) |
||
Zeile 37: | Zeile 37: | ||
<big><big>'''docker bash'''</big></big> | <big><big>'''docker bash'''</big></big> | ||
+ | |||
+ | ''docker run'' | ||
+ | $''' docker run | ||
+ | -it''' | ||
''run alpine cli sh'' | ''run alpine cli sh'' |
Version vom 28. April 2021, 17:37 Uhr
Docker Container & Images
[Docker https://www.docker.com/]
Tutorial docker cli, docker-compose, docker swarm
Docker cli
Version
$ docker -v $ docker-compose -v
System
system-wide information
$ docker system info
docker disk usage
$ docker system df
real time events from the server
$ docker system events
Status
running containers
$ docker ps
Export
export container, these commands has the same result
$ docker export nginx > nginx_latest.tar $ docker export --output="nginx_latest" nginx
docker bash
docker run
$ docker run -it
run alpine cli sh
$ docker run -it alpine /bin/sh
run alpine cli detached
$ docker run -it -d --name MYALPINE -p 8080:80 alpine
run alpine cli with entrypoint
$ docker run -it --name MYALPINE -p 8080:80 --entrypoint /bin/sh alpine
docker File
docker compose