Docker Martin Meyer 2014-12-18. Agenda What is Docker? –Docker vs. Virtual Machine –History, Status, Run Platforms –Hello World Images and Containers.

Slides:



Advertisements
Similar presentations
1 NETE4631 Cloud deployment models and migration Lecture Notes #4.
Advertisements

Kat Passen.  Open source platform to manage deployment  Acts as a layer between an OS and an application  Images not dependent on system – similar.
Introduction to Docker Jitendra Kumar Patel Saturday, January 24, 2015.
Docker Martin Meyer Agenda What is Docker? –Docker vs. Virtual Machine –History, Status, Run Platforms Hello World Terminology: Image and.
Johan Janssen, Info Support. Continuous delivery Docker Jenkins Questions.
Johan Info Support. Internet of things Continuous delivery Docker Jenkins Questions.
Windows Azure Conference 2014 Running Docker on Windows Azure.
Microsoft Azure Virtual Machines. Networking Compute Storage Virtual Machine Operating System Applications Data & Access Runtime Provision & Manage.
Model a Container Runtime environment on Your Mac with VMware AppCatalyst VMworld Fabio Rapposelli
GIT An introduction to GIT Source Control. What is GIT (1 of 2) ▪ “Git is a free and open source distributed version control system designed to handle.
Johan Janssen, Info Support. Continuous delivery Docker Jenkins Questions.
Introduction to GitHub Alex Bigazzi Dec. 4, 2013 ITS Lab GitHub Introduction1.
GAAIN Virtual Appliances: Virtual Machine Technology for Scientific Data Analysis Arihant Patawari USC Stevens Neuroimaging and Informatics Institute July.
Node.js & Windows Azure AZR326  JavaScript on the Server!  Event driven I/O server-side JavaScript  Not thread based, each connection uses only a.
Breaking Barriers Exploding with Possibility Breaking Barriers Exploding with Possibility The Cloud Era Unveiled.
Enterprise Cloud Computing
Docker and Container Technology
© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Docker Overview Automating.
WMarket For Adminstrators Install with Docker or the Automatic Script.
Volatile Environments with Virtualization Technologies 1 iCSC2016, Anastasios Andronidis, Imperial College London Volatile Environments with Virtualization.
#msitconf. Damien Caro Technical Evangelist Manager, Что будет, если приложение поместить в контейнер? What happens if the application.
Using Docker in a CyVerse World The main portion of this tutorial should take about 45 minutes to go through, and assumes you have already gone through.
Alfresco deployment with Docker Andrea Agili Software Engineer – Dr Wolf srl Tommaso Visconti DevOps – Dr Wolf srl.
Lucas Jellema JavaOne 2015, San Francisco, 26th October 2015 Java Developer Intro to Environment Management with Vagrant, Puppet, and Docker.
Canadian Bioinformatics Workshops
Intro to Docker Containers
Linux Containers and Docker
Global Azure Bootcamp 2017 Linz, Austria
Building ARM IaaS Application Environment
Agenda:- DevOps Tools Chef Jenkins Puppet Apache Ant Apache Maven Logstash Docker New Relic Gradle Git.
INTRO TO Presenter: PhuongNQK.
Containers as a Service with Docker to Extend an Open Platform
Fundamentals Sunny Sharma Microsoft
From Application To Appliance
Docker and Azure Container Service
Infrastructure Orchestration to Optimize Testing
Docker Birthday #3.
Intro to Docker Containers
SQL Server Containers: End-to-End
Docker in Action.
In-Depth Introduction to Docker
Docker – kontejnerizacija na serveru Vedran Vučetić, SPAN
Building a Continuous Delivery Pipeline for ASP.NET Core Apps
Machine Learning Workshop
Containers and Virtualisation
ASP.NET in Linux and Windows containers
Andrew Pruski SQL Server & Containers
Lab 1 introduction, debrief
Drupal VM and Docker4Drupal For Drupal Development Platform
Windows Server & Hyper-V Containers Vaggelis Kappas
Microsoft Connect /18/ :32 PM
Drupal VM and Docker4Drupal as Consistent Drupal Development Platform
Introduction to Docker
Microservices in Dyalog APL Morten Kromberg – 11th January 2018
Microsoft Virtual Academy
Microsoft Virtual Academy
GBIF CESP Workshop, Madrid 2018 Dave Martin
Docker, Drupal and Persistence
Different types of Linux installation
bitcurator-access-webtools Quick Start Guide
Docker Some slides from Martin Meyer Vagrant Box:
CloudOpting - Hackathon
Introduction to Docker
Oracle Container Cloud Service made easy HROUG Conference 2018
Container technology, Microservices, and DevOps
Architecture Agnostic Docker Build Systems
Azure Container Service
Data science laboratory (DSLAB)
Container technology, Microservices, and DevOps
The Future of Database Development (with containers)
Presentation transcript:

Docker Martin Meyer

Agenda What is Docker? –Docker vs. Virtual Machine –History, Status, Run Platforms –Hello World Images and Containers Volume Mounting, Port Publishing, Linking Around Docker, Docker Use Cases Hands-On Workshop 2

3 What is Docker? Docker is an open-source project that automates the deployment of applications inside software containers, by providing an additional layer of abstraction and automation of operating system–level virtualization on Linux. [Source: en.wikipedia.org]

4 Docker: Name docker [naut.]: der Dockarbeiter, der Hafenarbeiter Source: leo.org Provide a uniformed wrapper around a software package: «Build, Ship and Run Any App, Anywhere» [ –Similar to shipping containers: The container is always the same, regardless of the contents and thus fits on all trucks, cranes, ships,... [

5 Docker vs. Virtual Machine Source:

6 Docker Technology libvirt: Platform Virtualization LXC (LinuX Containers): Multiple isolated Linux systems (containers) on a single host Layered File System [Source:

7 Docker History : Releases as Open Source : Red Hat collaboration (Fedora, RHEL, OpenShift) : 34th most starred GitHub project : JAX Innovation Award (most innovative open technology)

8 Technology Radar : Assess : Trial Source: /tools/docker

9 Run Platforms Various Linux distributions (Ubuntu, Fedora, RHEL, Centos, openSUSE,...) Cloud (Amazon EC2, Google Compute Engine, Rackspace) : Microsoft announces plans to integrate Docker with next release of Windows Server

10 Hello World Simple Command - Ad-Hoc Container docker run ubuntu echo Hello World – docker images [-a] – docker ps –a

11 Terminology - Image Persisted snapshot that can be run –images: List all local images –run: Create a container from an image and execute a command in it –tag: Tag an image –pull: Download image from repository –rmi: Delete a local image This will also remove intermediate images if no longer used

12 Terminology - Container Runnable instance of an image –ps: List all running containers –ps –a: List all containers (incl. stopped) –top: Display processes of a container –start: Start a stopped container –stop: Stop a running container –pause: Pause all processes within a container –rm: Delete a container –commit: Create an image from a container

Container cid4 Container cid4 Container cid3 Container cid3 13 Image vs. Container Base Image ubuntu:latest Base Image ubuntu:latest Container cid1 Container cid1 run Container cid1 Container cid1 cmd  new state New Image iid1 New Image iid1 commit base image Container cid2 Container cid2 run

14 Dockerfile Create images automatically using a build script: «Dockerfile» Can be versioned in a version control system like Git or SVN, along with all dependencies Docker Hub can automatically build images based on dockerfiles on Github

15 Dockerfile Example Dockerfile: – FROM ubuntu ENV DOCK_MESSAGE Hello My World ADD dir /files CMD ["bash", "someScript"] docker build [DockerFileDir] docker inspect [imageId]

16 Mount Volumes docker run –ti –v /hostLog:/log ubuntu Run second container: Volume can be shared – docker run –ti --volumes- from firstContainerName ubuntu

17 Publish Port docker run –t –p 8080:80 ubuntu nc –l 80 –Map container port 80 to host port 8080 –Check on host: nc localhost 8080 Link with other docker container – docker run -ti --link containerName:alias ubuntu –See link info with set

18 Around Docker Docker Images: Docker Hub Vagrant: «Docker for VMs» Automated Setup –Puppet, Chef, Ansible,... Docker Ecosystem –skydock / skydns –fig

19 Docker Hub Public repository of Docker images – –docker search [term] Automated: Has been automatically built from Dockerfile –Source for build is available on GitHub

20 Resource Usage top / ps / free -m Start 100 WebServer containers –docker run -d -p $hostPort:5000 -e "PROVIDER=$provider" training/webapp docker ps [containerId] top / ps / free -m

21 Docker Use Cases Development Environment Environments for Integration Tests Quick evaluation of software Microservices Multi-Tenancy Unified execution environment (dev  test  prod (local, VM, cloud,...)

22 Documentation Docker homepage: –Introduction: –Online tutorial: –Installation and user guide: InfTec TecBoard: ocker ocker –Includes this presentation

23 Hands On playground/branch/docker-demohttps://bitbucket.org/inftec/vagrant- playground/branch/docker-demo Multi-Container-Setup –Logging-Container –Echo-Container –Client-Container

24