O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Docker in Motion

Video Description

Docker in Motion teaches you how to create and manage container-hosted applications in Docker. With over 2 hours of hands-on, practical video lessons, you'll learn the ins and outs of Docker and discover how to apply what you've learned to your own day-to-day development. Starting with an overview of Docker, you'll dive into the commands and techniques you'll need for running and managing containers, creating, modifying, saving and uploading Docker images from scratch, running and building multiple containers with Docker Compose, and more.

Inside:
  • An introduction to Docker and how it works
  • Image management
  • Creating Docker images
  • Managing containers
  • Storing and managing data in volumes
  • Linking your Docker containers
  • Running a web server which is connected to a database
  • Configuring containers using docker-compose
About the subject

Docker creates sandboxed environments, called containers, that isolate your applications from the underlying infrastructure, making them much easier to deploy, migrate, scale, and remove. Each Docker container includes the application and all its dependencies in a single deployable package. Docker has rapidly become a nearly universal part of IT infrastructure in millions of Linux and cloud-based deployments worldwide, including big shops like eBay and Lyft. It's time to join them!

Prerequisites
No experience with Docker is required. The course assumes basic familiarity with Linux and software development.

Peter Fisher is a freelance web and mobile app developer. He's the host of the HowToCodeWell YouTube channel, where he posts weekly tutorials and talks on web development and other subjects.

Table of Contents

  1. INTRODUCTION TO DOCKER
    1. How to replicate and isolate individual projects 00:09:35
    2. Virtual world vs. the container world 00:05:20
    3. What should you put in a container? 00:04:35
    4. Container exercise 1 00:04:32
    5. What is a microservice? 00:06:49
    6. What is the Docker Engine? 00:07:51
    7. Summary 00:01:28
  2. DOCKER IMAGES
    1. Docker images versus Docker containers 00:05:45
    2. How to pull Docker images 00:08:21
    3. What is a Docker image layer? 00:07:29
    4. How to remove Docker images 00:04:56
    5. Web development benefits of using Docker images 00:05:06
    6. Summary 00:00:58
  3. HOW TO CREATE A DOCKER IMAGE
    1. What is a Dockerfile? 00:02:11
    2. Dockerfile structure 00:07:08
    3. Creating your first Dockerfile 00:03:00
    4. Building your first Dockerfile 00:02:39
    5. Getting your image history 00:01:14
    6. Inspect your image 00:00:38
    7. Dockerfile good practice 00:07:31
    8. Dockerfile copying and adding 00:04:22
    9. Dockerfile environmental variables 00:08:54
    10. How to pass variables into the build 00:09:46
    11. Summary 00:00:56
  4. DOCKER IMAGE MANAGEMENT
    1. How to quickly remove unused images 00:10:25
    2. How to tag your images 00:08:37
    3. How to log in to a Docker registry 00:03:10
    4. How to push a Docker image 00:05:21
    5. How to pull images from the Docker Hub 00:03:24
    6. How to update the remote images 00:05:41
    7. Summary 00:00:32
  5. MANAGING DOCKER CONTAINERS
    1. How to create a container from an image 00:10:28
    2. How to create a container from an inbuilt image 00:07:43
    3. How to name a container 00:04:18
    4. How to stop a container 00:03:20
    5. How to start a container 00:02:31
    6. How to restart a container 00:02:37
    7. How to run a command against a container 00:05:08
    8. How to get inside a container 00:07:47
    9. How to adjust the working directory 00:04:13
    10. How to adjust the user 00:04:40
    11. How to run the web server 00:13:51
    12. General security good practices 00:04:45
    13. Summary 00:00:45
  6. BUILDING A DATABASE CONTAINER
    1. How to build an image with a database 00:06:19
    2. How to run the database in a Docker container 00:04:24
    3. How to run the database container 00:09:38
    4. How to add data to the database 00:05:36
    5. The problems with storing data 00:03:22
    6. Summary 00:00:33
  7. HOW TO STORE DATA
    1. What are the storage options? 00:04:18
    2. How to make a bind mount 00:07:33
    3. How to create a Docker volume 00:09:55
    4. How to copy files into a container 00:09:38
    5. How to list your volumes 00:02:54
    6. How to remove a volume 00:04:20
    7. How to share a volume amongst containers 00:04:48
    8. Summary 00:00:39
  8. DOCKER COMPOSE
    1. The Docker Compose structure 00:04:41
    2. How to run containers quickly 00:03:31
    3. How to update all your images 00:02:07
    4. How to remove all of your volumes 00:03:33
    5. How to expose your database and webserver ports 00:01:39