Chapter 8 Docker Overview & Installation
This document covers the basic
docker commands used frequently when working with images and containers.
8.1 What is Docker?
Docker is an amazingly popular software for creating virtual environments that can be used to deploy applications in containerized (controlled) environments.
8.2 How Docker Works
Shiny App run on AWS EC2 consists of:
- Files - Controlled by
- Software Environment - Controlled by
DockerHub- An online community for storing and sharing container images. Has Public and Private repositories for image storage.
Container- A container is a virtual environment that combines a Docker Image with software (files) to run an application in a controlled environment (a reproducible software environment created virtually from the Docker Image).
Image- An image is an environment that has been built from a series of instructions called a DockerFile. Images can be prebuilt and hosted on DockerHub (similar to how GitHub hosts version controlled software files). The
imageis needed to run a Docker Container.