TASIOMIND.DEV — OPERATIONAL▸▸▸FULL STACK DEVELOPER @ GWQ SERVICEPLUS AG▸▸▸FOUNDER — K8SGPT.AI▸▸▸OPEN SOURCE: ACTIVE▸▸▸DISTRIBUTED SYSTEMS / KUBERNETES / AI▸▸▸RUST + GO + PYTHON▸▸▸FIELD TESTED / STATUS — NOMINAL▸▸▸LOCATION: EUROPE/BERLIN▸▸▸TASIOMIND.DEV — OPERATIONAL▸▸▸FULL STACK DEVELOPER @ GWQ SERVICEPLUS AG▸▸▸FOUNDER — K8SGPT.AI▸▸▸OPEN SOURCE: ACTIVE▸▸▸DISTRIBUTED SYSTEMS / KUBERNETES / AI▸▸▸RUST + GO + PYTHON▸▸▸FIELD TESTED / STATUS — NOMINAL▸▸▸LOCATION: EUROPE/BERLIN▸▸▸

Docker - Getting started

May 13, 2020

Basis-Checks

code
docker --version
docker info
docker run hello-world
docker ps
docker ps -a
docker images

Beispiel: Getting Started App

code
git clone https://github.com/docker/getting-started.git
cd getting-started
docker build -t docker101tutorial .
docker run -d -p 80:80 --name docker-tutorial docker101tutorial

Docker vs. Docker Compose

  • Docker: einzelne Container
  • Compose: mehrere Container via docker-compose.yml

Docker beim Boot starten

code
systemctl list-units --type service | rg -i docker
sudo systemctl enable docker

Restart Policies

code
docker run -d --restart unless-stopped foo

Policies:

  • no
  • on-failure
  • always
  • unless-stopped

Compose:

code
services:
  web:
    image: apache
    restart: always