Book description
Leverage Docker to deploying software at scale
Key Features
- Leverage practical examples to manage containers efficiently
- Integrate with orchestration tools such as Kubernetes for controlled deployments
- Learn to implement best practices on improving efficiency and security of containers
Book Description
Docker is an open source platform for building, shipping, managing, and securing containers. Docker has become the tool of choice for people willing to work with containers. Since the market is moving toward containerization, Docker will definitely have a big role to play in the future tech market.
This book starts with setting up Docker in different environment, and helps you learn how to work with Docker images. Then, you will take a deep dive into network and data management for containers. The book explores the RESTful APIs provided by Docker to perform different actions, such as image/container operations. The book then explores logs and troubleshooting Docker to solve issues and bottlenecks. You will gain an understanding of Docker use cases, orchestration, security, ecosystems, and hosting platforms to make your applications easy to deploy, build, and collaborate on. The book covers the new features of Docker 18.xx (or later), such as working with AWS and Azure, Docker Engine, Docker Swarm, Docker Compose, and so on.
By the end of this book, you will have gained hands-on experience of finding quick solutions to different problems encountered while working with Docker.
What you will learn
- Install Docker on various platforms
- Work with Docker images and containers
- Container networking and data sharing
- Docker APIs and language bindings
- Various PaaS solutions for Docker
- Implement container orchestration using Docker Swarm and Kubernetes
- Container security
- Docker on various clouds
Who this book is for
Book is targeted towards developers, system administrators, and DevOps engineers who want to use Docker in his/her development, QA, or production environments.
It is expected that the reader has basic Linux/Unix skills such as installing packages, editing files, managing services, and so on.
Any experience in virtualization technologies such as KVM, XEN, and VMware will be an added advantage
Table of contents
- Title Page
- Copyright and Credits
- Dedication
- Packt Upsell
- Contributors
- Preface
-
Introduction and Installation
- Introduction
- Verifying requirements for Docker installation
- Installing Docker on Ubuntu
- Installing Docker on CentOS
- Installing Docker on Linux with an automated script
- Installing Docker for Windows
- Installing Docker for Mac
- Pulling an image and running a container
- Adding a nonroot user to administer Docker
- Finding help with the Docker command line
-
Working with Docker Containers
- Introduction
- Listing/searching for an image
- Pulling an image
- Listing images
- Starting a container
- Listing containers
- Looking at the container logs
- Stopping a container
- Removing a container
- Removing all stopped containers
- Setting the restart policy on a container
- Getting privileged access inside a container
- Accessing the host device inside a container
- Injecting a new process into a running container
- Reading a container's metadata
- Labeling and filtering containers
- Reaping a zombie inside a container
-
Working with Docker Images
- Introduction
- Creating an image from the container
- Creating an account with Docker Hub
- Logging in and out of the Docker image registry
- Publishing an image to the registry
- Looking at the history of an image
- Removing an image
- Exporting an image
- Importing an image
- Building an image using a Dockerfile
- Building an Apache image – a Dockerfile example
- Setting up a private index/registry
- Automated builds – with GitHub and Bitbucket
- Creating a custom base image
- Creating a minimal image using a scratch base image
- Building images in multiple stages
- Visualizing the image hierarchy
-
Network and Data Management for Containers
- Introduction
- Accessing containers from outside
- Attaching containers to a host network
- Launching containers with no network
- Sharing IP addresses with other containers
- Creating a user-defined bridge network
- Discovering and load balancing containers
- Persisting data using volumes
- Sharing data between the host and the container
- Docker Use Cases
- Docker APIs and SDKs
- Docker Performance
- Docker Orchestration and Hosting a Platform
- Docker Security
-
Getting Help and Tips and Tricks
- Introduction
- Starting Docker in debug mode
- Building a Docker binary from the source
- Building images without using cached layers
- Building your own bridge for container communication
- Changing the default OCI runtime
- Selecting the logging driver for containers
- Getting real-time Docker events for containers
- Docker on the Cloud
- Other Books You May Enjoy
Product information
- Title: Docker Cookbook - Second Edition
- Author(s):
- Release date: August 2018
- Publisher(s): Packt Publishing
- ISBN: 9781788626866
You might also like
book
Docker Cookbook
Whether you’re deploying applications on premise or in the cloud, this cookbook provides developers, operators, and …
book
Kubernetes - A Complete DevOps Cookbook
Leverage Kubernetes and container architecture to successfully run production-ready workloads Key Features Implement Kubernetes to orchestrate …
video
Docker in Motion
Docker in Motion teaches you how to create and manage container-hosted applications in Docker. With over …
book
Docker Quick Start Guide
Develop and build your Docker images and deploy your Docker containers securely. Key Features Learn Docker …