Video description
Docker is a tool which has greatly simplified the task of packaging your application, along with all its dependencies into lightweight, portable units called containers. These containers are platform independent and can be executed on any host which runs a Linux kernel. Docker is one of the hottest tools in the market right now as a lot of teams have learned how to use it to break up their large, monolithic applications into smaller and more manageable units - often called microservices. This has allowed development teams to work on microservices independently and package it into a container once it is ready. Docker has also eased the pain of DevOps teams who often need to manage the deployment processes and environments - since containers can run independently of each other, they can simply focus on deploying containers rather than worrying about dependencies for each application. Container orchestration tools such as Docker Swarm and Kubernetes have made it very easy to deploy microservices to a cluster and scale them according to demand. For these reasons, Docker is a technology which you need to know if you're an app developer or DevOps engineer.
What You Will Learn
- Improve your odds of passing the Docker Certified Associate exam
- Understand how to package applications into portable and scalable containers
- Deploy and scale applications in a cluster using Docker Swarm
- Master the important aspects of Docker - Images, Volumes, Repos and Networks
Audience
Any app developer looking to make their applications portable and platform independent. DevOps engineers looking to simplify their CI/CD processes and deployment environments. Any professional who wishes to master Docker. Any individual looking to take and pass the Docker Certified Associate exam.
About The Author
Loonycorn: Loonycorn is Janani Ravi and Vitthal Srinivasan. Between them, they have studied at Stanford, been admitted to IIM Ahmedabad, and have spent years working in tech, in the Bay Area, New York, Singapore and Bangalore. Janani spent 7 years at Google (New York, Singapore); Studied at Stanford and also worked at Flipkart and Microsoft. Vitthal also worked at Google (Singapore) and studied at Stanford; Flipkart, Credit Suisse and INSEAD too. They think they might have hit upon a neat way of teaching complicated tech courses in a funny, practical, engaging way, which is why they are so excited to be here. They hope you will try their offerings, and you'll like them.
Table of contents
- Chapter 1 : Introduction
- Chapter 2 : Docker Community Edition Installation
-
Chapter 3 : Docker Images
- Working With Docker: Images and Containers
- The Format of a Dockerfile
- The .dockerignorefile
- The Escape Parser Directive
- Our First Docker Image and Container
- More Dockerfile Instructions: RUN, ENV, WORKDIR
- Set the Container's Starting Point: The ENTRYPOINT Instruction
- Define a Build in a Base Image: The ONBUILD Instruction
- Stop a Container Once its Work is done: The STOPSIGNAL Instruction
- Share a Docker Image
- Pushing an Image to a Dockerhub Repo
- Another Way to Store Images: Saving to and Loading from .tar Files
- Search for Docker Images: The Docker search Command
- Examine your Image: The Docker inspect Command
- Cleaning up Images: Remove Unused and Dangling Images with Docker prune
- Deleting an Image: The Docker image rm command
-
Chapter 4 : Docker Containers
- Container Basics: Create, Start and Stop
- Restarting a Container: The Docker restart Command
- Connect to a Container: The Docker attach Command
- Interacting with a Container: The Docker exec Command
- Examine your Container Using Docker inspect
- Debugging a Container: View Container Logs
- More Debugging: View Processes of a Running Container
- Cleaning up Containers: Remove Unused Containers with Docker prune
- Remove Specific Containers using Docker rm
- Dealing with a Zombie Container: The Docker kill Command
- Renaming a Docker Container
- What has Changed in my Container?: The Docker container diff Command
- Saving the Container State: The Docker container commit Command
- Mapping Container Ports to its Host
- Putting it together: From Dockerfile to an NGINX App
-
Chapter 5 : Storage in Docker
- Managing Data in Docker
- Understanding Volumes
- Understanding Bind Mounts
- Understanding tmpfs Mounts
- Create a Volume
- Start a Container with a Volume
- Attach a Read-Only Volume to a Container
- Inspecting Details of a Volume
- Cleaning up Volumes: Prune Unused Volumes
- Observing Changes to a Volume
- Start a Container with a Bind Mount
- Start a Container with a tmpfs Mount
-
Chapter 6 : Container Orchestration with Docker Swarm
- Introducing Container Orchestration and Docker Swarm
- Preparing a Cluster: Provision the Nodes of the Swarm
- Create the Swarm: Set up the Master and Worker Nodes
- Deploy a Service in the Swarm
- Scaling Our Service
- Inspecting the Nodes in a Swarm
- Take a Swarm Node Offline: Drain a Worker
- Update and Remove a Swarm Service
- Global Services: Deploy App to All Nodes in a Swarm
- Protect Sensitive Data: Creating Secrets
- Removing Nodes from a Docker Swarm
- Alter the Swarm Hierarchy - Promoting and Demoting Swarm Nodes
- Chapter 7 : Docker Networks
- Chapter 8 : Docker's Enterprise Edition and the Universal Control Plane (UCP)
- Chapter 9 : The Docker Trusted Registry (DTR)
- Chapter 10 : The Docker Certified Associate Exam
Product information
- Title: Introduction to Docker and the DCA Certification
- Author(s):
- Release date: June 2018
- Publisher(s): Packt Publishing
- ISBN: 9781789539097
You might also like
book
A Complete Guide to Docker for Operations and Development: Test-Prep for the Docker Certified Associate (DCA) Exam
Harness the power of Docker by containerizing your code with all its libraries and file systems …
book
Docker Certified Associate (DCA): Exam Guide
Pass the DCA exam and enhance your DevOps skills by achieving faster deployments, reduced downtime, and …
video
Introduction to Docker
Get started with Docker and learn how to deploy your software applications as portable, self-sufficient containers …
video
Docker Certified Associate Exam Prep Course
This course covers the entire syllabus of DCA laid out by Mirantis and explains each aspect …