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

Docker Containers Basics

vcach
April 11, 2018

Docker Containers Basics

Introduction to Docker Containers

vcach

April 11, 2018
Tweet

More Decks by vcach

Other Decks in Technology

Transcript

  1. CAMILO ANDRES CORTES H. PUBLIC CLOUD & DEVOPS SME –

    MCP, MCTS, VCP CLOUDFIRSTCAMPUS BOARD MEMBER – COMMUNITY LEADER SYSADMIN CLOUD OPS STUDIO @GLOBANT facebook.com/vcach linkedin/cortescamilo @vcach_ops camilo.cortes@cloudfirstcamp.com
  2. DOCKER CONTAINERS BASICS AGENDA ▸What is a Container? ▸Containers vs

    Virtual Machines ▸Docker Architecture ▸Docker Images ▸Docker Hub ▸How to run Containers ▸DEMO: Running a web server inside a Container ▸DEMO: Deploy a Web Application on Azure using Containers ▸Next Steps: Orchestrators - DevOps ▸Q & A
  3. A container image is a lightweight, stand-alone, executable package of

    a piece of software that includes everything needed to run it: code, runtime, system tools, system libraries, settings. Docker WHAT IS A CONTAINER https://www.docker.com/what-docker
  4. DOCKER IMAGES A Docker image is built up from a

    series of layers. Each layer represents an instruction in the image’s Dockerfile. Each layer except the very last one is read-only. An image is an inert, immutable, file that's essentially a snapshot of a container. The’ll produce a container when started with “run”. Images are stored in a Docker registry such as “Docker Hub” When you download an image, it can then be used (as a template) to spin up multiple running Containers in your own environment.
  5. DOCKER HUB Docker Hub is a cloud-based registry service which

    allows you to link to code repositories, build your images and test them, stores manually pushed images. It provides a centralized resource for container image discovery, distribution and change management, user and team collaboration, and workflow automation throughout the development pipeline. https://hub.docker.com
  6. HOW TO RUN A CONTAINER AS EASY AS: Usage: docker

    container run [OPTIONS] IMAGE [COMMAND] [ARG…] EXAMPLE: Docker container run -n ContainerName -d -p 80:80 repository/imagename Docker container run -n proxy -d -p 80:80 nginx USE CASE: Run a Ubuntu container and install Python # Start a shell in Ubuntu. docker run -i -t ubuntu:14.04 /bin/bash # Install Python # and exit container. apt-get update apt-get install -y python3-pip exit
  7. facebook.com/vcach linkedin/cortescamilo @vcach_ops camilo.cortes@cloudfirstcamp.com CAMILO ANDRES CORTES H. PUBLIC CLOUD

    & DEVOPS SME – MCP, MCTS, VCP CLOUDFIRSTCAMPUS BOARD MEMBER – COMMUNITY LEADER SYSADMIN CLOUD OPS STUDIO @GLOBANT ‣