Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Kleiner Workshop zu Docker

637 views

Published on

Kleiner Workshop zu Docker

Published in: Education
  • Be the first to comment

Kleiner Workshop zu Docker

  1. 1. Workshop Docker Michael Plate 02.12.2019
  2. 2. Agenda • Grundlagen Docker (Docker Daemon, Docker Registry, Container, Images) • Installation Docker • Docker CLI Befehle • Installation Docker Compose • Unterschiede Dockerfile & docker-compose.yml • Installation Portainer
  3. 3. Grundlagen Docker (Hypervisor vs Docker)
  4. 4. Grundlagen Docker Architektur
  5. 5. Installation Docker • Linux Distributionen • RHEL / CentOS https://docs.docker.com/install/linux/docker-ce/centos/ • Ubuntu https://docs.docker.com/install/linux/docker-ce/ubuntu/ • Windows • https://docs.docker.com/docker-for-windows/
  6. 6. Installation Docker Compose Anleitung: https://docs.docker.com/v17.09/compose/install/
  7. 7. Dockerfile vs. Docker Compose Compose is a tool for defining and running multi-container Docker applications. Docker can build images automatically by reading the instructions from a Dockerfile. A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image FROM openjdk:8-jdk-alpine ADD target/person-application-0.0.1-SNAPSHOT.jar app.jar ENTRYPOINT ["java","-jar","app.jar"] version: '3.3' services: db: image: mysql:5.7 volumes: - db_data:/var/lib/mysql restart: always environment: Dockerfile Docker-compose.yml
  8. 8. Docker CLI Befehle • Docker Cheat Sheet http://dockerlabs.collabnix.com/docker/cheatsheet/
  9. 9. Docker Beispiele 1. git clone https://github.com/development-plate/lab-monitoring.git 2. cd person-application 3. more Dockerfile 4. sudo docker build -t person-application:LATEST . 5. sudo docker run -d -p 9234:9000 --name person-application person- application:LATEST 6. visit http://localhost:9234 FROM openjdk:8-jdk-alpine ADD target/person-application-0.0.1-SNAPSHOT.jar app.jar ENTRYPOINT ["java","-jar","app.jar"]
  10. 10. Installation Portainer • Portainer: https://www.portainer.io/installation/

×