Docker: Creating Structured Containers

Become an expert in the innovative containerization tool to unlock new opportunities in the way you use and deploy software
Preview in Mapt
Code Files

Docker: Creating Structured Containers

Pethuru Raj et al.

2 customer reviews
Become an expert in the innovative containerization tool to unlock new opportunities in the way you use and deploy software
Mapt Subscription
FREE
$29.99/m after trial
eBook
$42.00
RRP $59.99
Save 29%
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
$42.00
$29.99p/m after trial
RRP $59.99
Subscription
eBook
Start 30 Day Trial

Frequently bought together


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
Buy 2 for $35.00
Save $104.98
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781786465931
Paperback820 pages

Book Description

So hot off the presses, the latest buzz that has been on the tip of everyone's tongues and the topic of almost any conversation that includes containers these days is Docker! Docker has been a game-changer when it comes to virtualization. With this course, you will go from just being the person in the office who hears that buzz to the one who is tooting it around every day. This course will be a smooth journey covering Docker from scratch to finish!

The first module will help you get familiarized with the fundamentals of Docker. The second module will show you how to create, deploy, and manage a virtual network for connecting containers spanning single or multiple hosts.

In the third module, you'll get to grips with monitoring your Docker apps and containers - this will show you how monitoring containers and keeping a keen eye on the working of applications helps improve the overall performance of the applications that run on Docker. The purpose of our fourth module, Securing Docker, is to provide techniques and enhance your skills to secure Docker containers easily and efficiently. Finally, you'll see how to deploy Docker in production and three interesting GUI applications: Shipyard, Panamax, and Tutum.

Table of Contents

Chapter 1: Getting Started with Docker
An introduction to Docker
Docker on Linux
Differentiating between containerization and virtualization
Docker networking/linking
Installing Docker
Downloading the first Docker image
Running the first Docker container
Running a Docker container on Amazon Web Services
Troubleshooting
Chapter 2: Up and Running
Docker terminologies
Docker commands
Running your own project
Dockerfile
Chapter 3: Container Image Storage
Docker Hub
Docker Hub Enterprise
Chapter 4: Working with Docker containers and images
Docker Hub Registry
Working with an interactive container
Chapter 5: Publishing Images
Pushing images to the Docker Hub
Automating the building process for images
Private repositories on the Docker Hub
Organizations and teams on the Docker Hub
The REST APIs for the Docker Hub
Chapter 6: Running Your Private Docker Infrastructure
The Docker registry and index
Docker registry use cases
Run your own index and registry
Push the image to the newly created Docker registry
Chapter 7: Running Services in a Container
A brief overview of container networking
Envisaging the Container as a Service
Exposing container services
Chapter 8: Sharing Data with Containers
The data volume
Sharing host data
Sharing data between containers
Avoiding common pitfalls
Data volume containers
Docker volume backups
Chapter 9: Docker Machine
Installation
Using Docker Machine
Docker Machine commands
Chapter 10: Docker Compose
Linking containers
Orchestration of containers
Installing Docker Compose
Docker Compose YAML file
The Docker Compose usage
The Docker Compose commands
Docker Compose – examples
Chapter 11: Docker Swarm
Docker Swarm install
Docker Swarm components
Docker Swarm usage
The Docker Swarm commands
The Docker Swarm topics
The Swarm cluster example
Chapter 12: Testing with Docker
A brief overview of the test-driven development
Testing your code inside Docker
Integrating Docker testing into Jenkins
Chapter 13: Debugging Containers
Process level isolation for Docker containers
Debugging a containerized application
Installing and using nsenter
Chapter 14: Docker Networking Primer
Networking and Docker
The docker0 bridge
Docker OVS
Unix domain socket
Linking Docker containers
What's new in Docker networking?
The Docker CNM model
Chapter 15: Docker Networking Internals
Configuring the IP stack for Docker
Configuring a DNS server
Configuring the Docker bridge
Overlay networks and underlay networks
Chapter 16: Building Your First Docker Network
Introduction to Pipework
Multiple containers over a single host
Open vSwitch
Networking with overlay networks – Flannel
Chapter 17: Networking in a Docker Cluster
Docker Swarm
Kubernetes
Mesosphere
Chapter 18: Next Generation Networking Stack for Docker – libnetwork
Goal
Design
CNM objects
Driver
Using overlay network with Vagrant
Overlay network with Docker Machine and Docker Swarm
Creating containers using an overlay network
CNI plugin
Project Calico's libnetwork driver
Chapter 19: Introduction to Docker Monitoring
Pets, Cattle, Chickens, and Snowflakes
Launching a local environment
Cloning the environment
Running a virtual server
Halting the virtual server
Chapter 20: Using the Built-in Tools
Docker stats
What just happened?
What about processes?
Chapter 21: Advanced Container Resource Analysis
What is cAdvisor?
Running cAdvisor using a container
Compiling cAdvisor from source
Collecting metrics
The Web interface
Viewing container stats
This is all great, what's the catch?
Prometheus
Alternatives?
Chapter 22: A Traditional Approach to Monitoring Containers
Zabbix
Installing Zabbix
Docker metrics
Chapter 23: Querying with Sysdig
What is Sysdig?
Installing Sysdig
Using Sysdig
Using Csysdig
Chapter 24: Exploring Third Party Options
A word about externally hosted services
Why use a SaaS service?
Sysdig Cloud
Datadog
New Relic
Chapter 25: Collecting Application Logs from within the Container
Viewing container logs
ELK Stack
Looking at third party options
Chapter 26: What Are the Next Steps?
Some scenarios
A little more about alerting
Keeping up
Chapter 27: Securing Docker Hosts
Docker host overview
Discussing Docker host
Virtualization and isolation
Attack surface of Docker daemon
Securing Docker hosts
Docker Machine
SELinux and AppArmor
Auto-patching hosts
Chapter 28: Securing Docker Components
Docker Content Trust
Docker Subscription
Docker Trusted Registry
Docker Registry
Chapter 29: Securing and Hardening Linux Kernels
Linux kernel hardening guides
Linux kernel hardening tools
Chapter 30: Docker Bench for Security
Docker security – best practices
Docker – best practices
CIS guide
The Docker Bench Security application
Chapter 31: Monitoring and Reporting Docker Security Incidents
Docker security monitoring
Docker CVE
Mailing lists
Docker security reporting
Additional Docker security resources
Chapter 32: Using Docker's Built-in Security Features
Docker tools
Docker security fundamentals
Containers versus virtual machines
Chapter 33: Securing Docker with Third-Party Tools
Third-party tools
Other third-party tools
Chapter 34: Keeping up Security
Keeping up with security
Other areas of interest
Chapter 35: Docker in Production
Where to start?
Host management
Container management
Docker Compose usage
Extending to external platform(s)
Overall security
DockerUI
ImageLayers
Chapter 36: Shipyard
Up and running
Containers
IMAGES
NODES
REGISTRIES
ACCOUNTS
EVENTS
Back to CONTAINERS
Chapter 37: Panamax
Installing Panamax
An example
Chapter 38: Tutum
Getting started
The tutorial page
The Service dashboard
The Nodes section
Cloud Providers
Back to Nodes
Back to the Services section
The Repositories tab
Stacks
Chapter 39: Advanced Docker
Scaling Docker
Using discovery services
Common issues and solutions
Various Docker APIs
Keeping your containers in check
Contributing to Docker
Advanced Docker networking

What You Will Learn

  • Learn how to install Docker across all the platforms along with a few troubleshooting techniques
  • Build, push, and publish images on Docker Hub
  • Orchestrate multiple containers with Docker Compose
  • Test and debug applications inside a Docker container
  • Get to know the basics of networking and see how Docker networking works
  • Discover the tools built into Docker to gain an insight into your container's performance
  • Take advantage of the various SaaS offerings from third parties to move monitoring away from your local infrastructure and into the cloud
  • Familiarize yourself with third-party tools such as Traffic Authorization, Summon, sVirt, and SELinux to secure your Docker environment
  • Integrate Docker with a wide range of cloud and configuration tools to fully realize its potential

Authors

Table of Contents

Chapter 1: Getting Started with Docker
An introduction to Docker
Docker on Linux
Differentiating between containerization and virtualization
Docker networking/linking
Installing Docker
Downloading the first Docker image
Running the first Docker container
Running a Docker container on Amazon Web Services
Troubleshooting
Chapter 2: Up and Running
Docker terminologies
Docker commands
Running your own project
Dockerfile
Chapter 3: Container Image Storage
Docker Hub
Docker Hub Enterprise
Chapter 4: Working with Docker containers and images
Docker Hub Registry
Working with an interactive container
Chapter 5: Publishing Images
Pushing images to the Docker Hub
Automating the building process for images
Private repositories on the Docker Hub
Organizations and teams on the Docker Hub
The REST APIs for the Docker Hub
Chapter 6: Running Your Private Docker Infrastructure
The Docker registry and index
Docker registry use cases
Run your own index and registry
Push the image to the newly created Docker registry
Chapter 7: Running Services in a Container
A brief overview of container networking
Envisaging the Container as a Service
Exposing container services
Chapter 8: Sharing Data with Containers
The data volume
Sharing host data
Sharing data between containers
Avoiding common pitfalls
Data volume containers
Docker volume backups
Chapter 9: Docker Machine
Installation
Using Docker Machine
Docker Machine commands
Chapter 10: Docker Compose
Linking containers
Orchestration of containers
Installing Docker Compose
Docker Compose YAML file
The Docker Compose usage
The Docker Compose commands
Docker Compose – examples
Chapter 11: Docker Swarm
Docker Swarm install
Docker Swarm components
Docker Swarm usage
The Docker Swarm commands
The Docker Swarm topics
The Swarm cluster example
Chapter 12: Testing with Docker
A brief overview of the test-driven development
Testing your code inside Docker
Integrating Docker testing into Jenkins
Chapter 13: Debugging Containers
Process level isolation for Docker containers
Debugging a containerized application
Installing and using nsenter
Chapter 14: Docker Networking Primer
Networking and Docker
The docker0 bridge
Docker OVS
Unix domain socket
Linking Docker containers
What's new in Docker networking?
The Docker CNM model
Chapter 15: Docker Networking Internals
Configuring the IP stack for Docker
Configuring a DNS server
Configuring the Docker bridge
Overlay networks and underlay networks
Chapter 16: Building Your First Docker Network
Introduction to Pipework
Multiple containers over a single host
Open vSwitch
Networking with overlay networks – Flannel
Chapter 17: Networking in a Docker Cluster
Docker Swarm
Kubernetes
Mesosphere
Chapter 18: Next Generation Networking Stack for Docker – libnetwork
Goal
Design
CNM objects
Driver
Using overlay network with Vagrant
Overlay network with Docker Machine and Docker Swarm
Creating containers using an overlay network
CNI plugin
Project Calico's libnetwork driver
Chapter 19: Introduction to Docker Monitoring
Pets, Cattle, Chickens, and Snowflakes
Launching a local environment
Cloning the environment
Running a virtual server
Halting the virtual server
Chapter 20: Using the Built-in Tools
Docker stats
What just happened?
What about processes?
Chapter 21: Advanced Container Resource Analysis
What is cAdvisor?
Running cAdvisor using a container
Compiling cAdvisor from source
Collecting metrics
The Web interface
Viewing container stats
This is all great, what's the catch?
Prometheus
Alternatives?
Chapter 22: A Traditional Approach to Monitoring Containers
Zabbix
Installing Zabbix
Docker metrics
Chapter 23: Querying with Sysdig
What is Sysdig?
Installing Sysdig
Using Sysdig
Using Csysdig
Chapter 24: Exploring Third Party Options
A word about externally hosted services
Why use a SaaS service?
Sysdig Cloud
Datadog
New Relic
Chapter 25: Collecting Application Logs from within the Container
Viewing container logs
ELK Stack
Looking at third party options
Chapter 26: What Are the Next Steps?
Some scenarios
A little more about alerting
Keeping up
Chapter 27: Securing Docker Hosts
Docker host overview
Discussing Docker host
Virtualization and isolation
Attack surface of Docker daemon
Securing Docker hosts
Docker Machine
SELinux and AppArmor
Auto-patching hosts
Chapter 28: Securing Docker Components
Docker Content Trust
Docker Subscription
Docker Trusted Registry
Docker Registry
Chapter 29: Securing and Hardening Linux Kernels
Linux kernel hardening guides
Linux kernel hardening tools
Chapter 30: Docker Bench for Security
Docker security – best practices
Docker – best practices
CIS guide
The Docker Bench Security application
Chapter 31: Monitoring and Reporting Docker Security Incidents
Docker security monitoring
Docker CVE
Mailing lists
Docker security reporting
Additional Docker security resources
Chapter 32: Using Docker's Built-in Security Features
Docker tools
Docker security fundamentals
Containers versus virtual machines
Chapter 33: Securing Docker with Third-Party Tools
Third-party tools
Other third-party tools
Chapter 34: Keeping up Security
Keeping up with security
Other areas of interest
Chapter 35: Docker in Production
Where to start?
Host management
Container management
Docker Compose usage
Extending to external platform(s)
Overall security
DockerUI
ImageLayers
Chapter 36: Shipyard
Up and running
Containers
IMAGES
NODES
REGISTRIES
ACCOUNTS
EVENTS
Back to CONTAINERS
Chapter 37: Panamax
Installing Panamax
An example
Chapter 38: Tutum
Getting started
The tutorial page
The Service dashboard
The Nodes section
Cloud Providers
Back to Nodes
Back to the Services section
The Repositories tab
Stacks
Chapter 39: Advanced Docker
Scaling Docker
Using discovery services
Common issues and solutions
Various Docker APIs
Keeping your containers in check
Contributing to Docker
Advanced Docker networking

Book Details

ISBN 139781786465931
Paperback820 pages
Read More
From 2 reviews

Read More Reviews

Recommended for You

Mastering Docker Book Cover
Mastering Docker
$ 39.99
$ 28.00
Learning Docker Book Cover
Learning Docker
$ 39.99
$ 8.00
Docker Cookbook Book Cover
Docker Cookbook
$ 35.99
$ 25.20
DevOps Automation Cookbook Book Cover
DevOps Automation Cookbook
$ 35.99
$ 25.20
Azure for Architects Book Cover
Azure for Architects
$ 35.99
$ 25.20
Implementing Qlik Sense Book Cover
Implementing Qlik Sense
$ 43.99
$ 30.80