Upgrade to Pro — share decks privately, control downloads, hide ads and more …

DockerGrunn #7 Intro

DockerGrunn #7 Intro

timmipetit

January 18, 2017
Tweet

Other Decks in Programming

Transcript

  1. • 19:30 Welkom bij TNO & Docker Intro • 20:00

    Docker Swarm op een PiStack • 20:45 Real world docker • 21:15 Borrel • 22:30 Klaar DockerGrunn #7 Winter is coming
  2. Wie zijn wij? Tijmen Klein @timmipetit Recras Henk Bokhoven @BOK

    TFE Spindle Joshua Peper @joshuapeper Peperzaken
  3. • Services in portable containers • Web server • Database

    server • Workers • Compilers • Tests • Browsers Wat
  4. • Docker hub: Image vinden • Readme lezen • Gaan!

    Start die container! • docker run docker/whalesay cowsay boo Hoe
  5. $ docker run docker/whalesay cowsay boo Unable to find image

    'docker/whalesay:latest' locally latest: Pulling from docker/whalesay e9e06b06e14c: Pull complete a82efea989f9: Pull complete 37bea4ee0c81: Pull complete 07f8e8c5e660: Pull complete 676c4a1897e6: Pull complete 5b74edbcaa5b: Pull complete 1722f41ddcb5: Pull complete 99da72cfe067: Pull complete 5d5bd9951e26: Pull complete fb434121fc77: Already exists Digest: sha256:d6ee73f Status: Downloaded newer image for docker/whalesay:latest _____ < boo > ----- \ \ \ ## . ## ## ## == ## ## ## ## === /""""""""""""""""___/ === ~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~ \______ o __/ \ \ __/ \____\______/
  6. $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE docker/whalesay

    latest fb434121fc77 3 hours ago 247 MB Images
  7. FROM docker/whalesay:latest RUN apt-get -y update && apt-get install -y

    fortunes CMD /usr/games/fortune -a | cowsay Zelf bouwen Dockerfile $ docker build -t fortune-whale . Sending build context to Docker daemon 2.048 kB ...snip... Removing intermediate container cb53c9d09f3b Successfully built c2c3152907b5
  8. $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE docker/whalesay

    latest fb434121fc77 3 hours ago 247 MB fortune-whale latest c2c3152907b5 4 minutes ago 275 MB $ docker run fortune-whale ______________________________________ < You will be successful in your work. > -------------------------------------- \ \ \ ## . ## ## ## == ## ## ## ## === /""""""""""""""""___/ === ~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~ \______ o __/ \ \ __/ \____\______/ Zelf bouwen