Comprehensive Guide to Installing and Using Docker
School
Thomas Jefferson School of Law**We aren't endorsed by this school
Course
AMJUR 635A
Subject
Computer Science
Date
Dec 12, 2024
Pages
2
Uploaded by kj6n0kx24
Table of Contents PYOfACR, .o il s e o me s bt Ll Ren bt by 1] RS Al §7 F L 6 s X 1. Getting Started WithDocker............ccccccicvivernernirnsinsessiviTirevees 1.0 Introduction 1.1 Installing Docker on Ubuntu 14.04 1.2 Installing Docker on CentOS 6.5 1.3 Installing Docker on CentOS 7 1.4 Setting Up a Local Docker Host by Using Vagrant 1.5 Installing Docker on a Raspberry Pi 1.6 Installing Docker on OS X Using Docker Toolbox 1.7 Using Boot2Docker to Get a Docker Host on OS X 1.8 Running Boot2Docker on Windows 8.1 Desktop 1.9 Starting a Docker Host in the Cloud by Using Docker Machine 1.10 Using Docker Experimental Binaries — O UT W O N b W - 1.11 Running Hello World in Docker 20 1.12 Running a Docker Container in Detached Mode 22 1.13 Creating, Starting, Stopping, and Removing Containers 23 1.14 Building a Docker Image with a Dockerfile 24 1.15 Using Supervisor to Run WordPress in a Single Container 25 1.16 Running a WordPress Blog Using Two Linked Containers 28 1.17 Backing Up a Database Running in a Container 30 1.18 Sharing Data in Your Docker Host with Containers 32 1.19 Sharing Data Between Containers 33 1.20 Copying Data to and from Containers 35 2,' Image Creationand SHanng. v o i doae da dai SVl s Ievalud e ils sV an i blene doh 37 2.0 Introduction 37 2.1 Keeping Changes Made to a Container by Committing to an Image 38
2.2 Saving Images and Containers as Tar Files for Sharing 39 2.3 Writing Your First Dockerfile 40 2.4 Packaging a Flask Application Inside a Container 44 2.5 Optimizing Your Dockerfile by Following Best Practices 46 2.6 Versioning an Image with Tags 48 2.7 Migrating from Vagrant to Docker with the Docker Provider 49 2.8 Using Packer to Create a Docker Image 52 2.9 Publishing Your Image to Docker Hub 55 2.10 Using ONBUILD Images 58 2.11 Running a Private Registry 60 2.12 Setting Up an Automated Build on Docker Hub for Continuous Integration/Deployment 62 2.13 Setting Up a Local Automated Build by Using a Git Hook and a Private Registry 67 2.14 Using Conduit for Continuous Deployment 68 3. Docker NOTWOTKING. < .- « o .« «.i s ninnn vamns o nssns sbuslod s o n Loyl e i Stk n 3.0 Introduction 71 3.1 Finding the IP Address of a Container 72 3.2 Exposing a Container Port on the Host 73 3.3 Linking Containers in Docker 75 3.4 Understanding Docker Container Networking 78 3.5 Choosing a Container Networking Namespace 81 3.6 Configuring the Docker Daemon IP Tables and IP Forwarding Settings 83 3.7 Using pipework to Understand Container Networking 85 3.8 Setting Up a Custom Bridge for Docker 91 3.9 Using OVS with Docker 92 3.10 Building a GRE Tunnel Between Docker Hosts 94 3.11 Running Containers on a Weave Network 97 3.12 Running a Weave Network on AWS 99 3.13 Deploying flannel Overlay Between Docker Hosts 101 3.14 Networking Containers on Multiple Hosts with Docker Network 103 3.15 Diving Deeper into the Docker Network Namespaces Configuration 107 4. Docker Configuration and Development..........ccovviiiiviiiiiiniiciinnnnnns 109 4.0 Introduction 109 4.1 Managing and Configuring the Docker Daemon 110 4.2 Compiling Your Own Docker Binary from Source 111 4.3 Running the Docker Test Suite for Docker Development 113 4.4 Replacing Your Current Docker Binary with a New One 114 4.5 Using nsenter 115 4.6 Introducing runc 117 vi | Tableof Contents