Learning Docker - Second Edition

Docker lets you create, deploy, and manage your applications anywhere at anytime – flexibility is key so you can deploy stable, secure, and scalable app containers across a wide variety of platforms and delve into microservices architecture
Preview in Mapt

Learning Docker - Second Edition

Jeeva S. Chelladhurai, Vinod Singh, Pethuru Raj

Docker lets you create, deploy, and manage your applications anywhere at anytime – flexibility is key so you can deploy stable, secure, and scalable app containers across a wide variety of platforms and delve into microservices architecture
Mapt Subscription
FREE
$29.99/m after trial
eBook
$28.00
RRP $39.99
Save 29%
Print + eBook
$49.99
RRP $49.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$28.00
$49.99
$29.99 p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Learning Docker - Second Edition Book Cover
Learning Docker - Second Edition
$ 39.99
$ 28.00
Learning Angular - Second Edition Book Cover
Learning Angular - Second Edition
$ 35.99
$ 25.20
Buy 2 for $35.00
Save $40.98
Add to Cart

Book Details

ISBN 139781786462923
Paperback300 pages

Book Description

Docker is an open source containerization engine that offers a simple and faster way for developing and running software. Docker containers wrap software in a complete filesystem that contains everything it needs to run, enabling any application to be run anywhere – this flexibily and portabily means that you can run apps in the cloud, on virtual machines, or on dedicated servers.

This book will give you a tour of the new features of Docker and help you get started with Docker by building and deploying a simple application. It will walk you through the commands required to manage Docker images and containers. You’ll be shown how to download new images, run containers, list the containers running on the Docker host, and kill them.

You’ll learn how to leverage Docker’s volumes feature to share data between the Docker host and its containers – this data management feature is also useful for persistent data. This book also covers how to orchestrate containers using Docker compose, debug containers, and secure containers using the AppArmor and SELinux security modules.

Table of Contents

Chapter 1: Getting Started with Docker
The key drivers for Dockerization
Differentiating between containerization and virtualization
Installing the Docker Engine
Understanding the Docker setup
Downloading the first Docker image
Running the first Docker container
Summary
Chapter 2: Handling Docker Containers
Clarifying Docker terms
Working with Docker images
Working with an interactive container
Summary
Chapter 3: Building Images
Docker's integrated image building system
A quick overview of the Dockerfile's syntax
The Dockerfile build instructions
A brief on the Docker image management
Best practices for writing a Dockerfile
Summary
Chapter 4: Publishing Images
Understanding Docker Hub
Pushing images to Docker Hub
Automating the build process for images
Private repositories on Docker Hub
Organizations and teams on Docker Hub
The REST API for Docker Hub
Summary
Chapter 5: Running Your Private Docker Infrastructure
Docker Registry
Docker Registry use cases
Running Docker Registry and pushing the image
Running the Docker Registry on localhost with an SSL certificate
Running Docker Registry with restrictions
Managing Docker Registry with Docker Compose
Load balancing consideration
Webhook notifications
Docker Registry HTTP API support
Summary
Chapter 6: Running Services in a Container
A brief overview of container networking
Envisaging container as a service
Exposing container services
Summary
Chapter 7: Sharing Data with Containers
Data volume
The volume management command
Sharing host data
Sharing data between containers
Avoiding common pitfalls
Summary
Chapter 8: Orchestrating Containers
Docker inbuilt service discovery
Linking containers
Orchestration of containers
Summary
Chapter 9: Testing with Docker
A brief overview of TDD
Testing your code inside Docker
Integrating Docker testing into Jenkins
Summary
Chapter 10: Debugging Containers
Process-level isolation for Docker containers
The docker exec command
The docker ps command
The docker top command
The docker stats command
The Docker events command
The docker logs command
The docker attach command
Debugging a Dockerfile
Summary
Chapter 11: Securing Docker Containers
The security scenario in the containerization domain
Immutable infrastructure
The best practices for container security
Summary
Chapter 12: The Docker Platform – Distinct Capabilities and Use Cases
Describing containers
Briefing the Docker platform
Implications of the Docker technology
The Docker use cases
Summary

What You Will Learn

  • Develop containerized applications using the Docker version 17.03
  • Build Docker images from containers and launch them
  • Develop Docker images and containers leveraging Dockerfiles
  • Use Docker volumes to share data
  • Get to know how data is shared between containers
  • Understand Docker Jenkins integration
  • Gain the power of container orchestration
  • Familiarize yourself with the frequently used commands such as docker exec, docker ps, docker top, and docker stats

Authors

Table of Contents

Chapter 1: Getting Started with Docker
The key drivers for Dockerization
Differentiating between containerization and virtualization
Installing the Docker Engine
Understanding the Docker setup
Downloading the first Docker image
Running the first Docker container
Summary
Chapter 2: Handling Docker Containers
Clarifying Docker terms
Working with Docker images
Working with an interactive container
Summary
Chapter 3: Building Images
Docker's integrated image building system
A quick overview of the Dockerfile's syntax
The Dockerfile build instructions
A brief on the Docker image management
Best practices for writing a Dockerfile
Summary
Chapter 4: Publishing Images
Understanding Docker Hub
Pushing images to Docker Hub
Automating the build process for images
Private repositories on Docker Hub
Organizations and teams on Docker Hub
The REST API for Docker Hub
Summary
Chapter 5: Running Your Private Docker Infrastructure
Docker Registry
Docker Registry use cases
Running Docker Registry and pushing the image
Running the Docker Registry on localhost with an SSL certificate
Running Docker Registry with restrictions
Managing Docker Registry with Docker Compose
Load balancing consideration
Webhook notifications
Docker Registry HTTP API support
Summary
Chapter 6: Running Services in a Container
A brief overview of container networking
Envisaging container as a service
Exposing container services
Summary
Chapter 7: Sharing Data with Containers
Data volume
The volume management command
Sharing host data
Sharing data between containers
Avoiding common pitfalls
Summary
Chapter 8: Orchestrating Containers
Docker inbuilt service discovery
Linking containers
Orchestration of containers
Summary
Chapter 9: Testing with Docker
A brief overview of TDD
Testing your code inside Docker
Integrating Docker testing into Jenkins
Summary
Chapter 10: Debugging Containers
Process-level isolation for Docker containers
The docker exec command
The docker ps command
The docker top command
The docker stats command
The Docker events command
The docker logs command
The docker attach command
Debugging a Dockerfile
Summary
Chapter 11: Securing Docker Containers
The security scenario in the containerization domain
Immutable infrastructure
The best practices for container security
Summary
Chapter 12: The Docker Platform – Distinct Capabilities and Use Cases
Describing containers
Briefing the Docker platform
Implications of the Docker technology
The Docker use cases
Summary

Book Details

ISBN 139781786462923
Paperback300 pages
Read More

Read More Reviews

Recommended for You

Mastering Docker - Second Edition Book Cover
Mastering Docker - Second Edition
$ 39.99
$ 28.00
Docker Orchestration Book Cover
Docker Orchestration
$ 35.99
$ 25.20
Docker: Creating Structured Containers Book Cover
Docker: Creating Structured Containers
$ 59.99
$ 42.00
DevOps: Puppet, Docker, and Kubernetes Book Cover
DevOps: Puppet, Docker, and Kubernetes
$ 79.99
$ 56.00
Native Docker Clustering with Swarm Book Cover
Native Docker Clustering with Swarm
$ 35.99
$ 25.20
Docker Bootcamp Book Cover
Docker Bootcamp
$ 27.99
$ 19.60