Book description
Designed for SysAdmins, Operations staff, Developers, and DevOps, this book will introduce you to the open source container platform Docker.
In this book, we will walk you through installing, deploying, managing, and extend Docker. We're going to do that by first introducing you to the basics of Docker and its components. Then we'll start to use Docker to build containers and services to perform a variety of tasks.
We're going to take you through the development lifecycle, from testing to production, and see where Docker fits in and how it can make your life easier. We'll make use of Docker to build test environments for new projects, demonstrate how to integrate Docker with continuous integration workflow, and then how to build application services and platforms. Finally, we'll show you how to use Docker's API and how to extend Docker yourself.
We'll teach you how to:
* Install Docker.
* Take your first steps with a Docker container.
* Build Docker images.
* Manage and share Docker images.
* Run and manage more complex Docker containers.
* Deploy Docker containers as part of your testing pipeline.
* Build multi-container applications and environments.
* Learn about orchestration. Use Compose and Swarm for the orchestration of Docker containers and Consul for service discovery.
* Explore the Docker API.
* Getting Help and Extending Docker.
Table of contents
- The Docker Book
- 1 Introduction
-
2 Installing Docker
- 2.1 Requirements
- 2.2 Installing on Ubuntu and Debian
- 2.3 Installing on Red Hat and family
- 2.4 Docker for Mac
- 2.5 Docker for Windows installation
- 2.6 Using Docker on OSX and Windows with this book
- 2.7 Docker installation script
- 2.8 Binary installation
- 2.9 The Docker daemon
- 2.10 Upgrading Docker
- 2.11 Docker user interfaces
- 2.12 Summary
-
3 Getting Started with Docker
- 3.1 Ensuring Docker is ready
- 3.2 Running our first container
- 3.3 Working with our first container
- 3.4 Container naming
- 3.5 Starting a stopped container
- 3.6 Attaching to a container
- 3.7 Creating daemonized containers
- 3.8 Seeing what’s happening inside our container
- 3.9 Docker log drivers
- 3.10 Inspecting the container’s processes
- 3.11 Docker statistics
- 3.12 Running a process inside an already running container
- 3.13 Stopping a daemonized container
- 3.14 Automatic container restarts
- 3.15 Finding out more about our container
- 3.16 Deleting a container
- 3.17 Summary
-
4 Working with Docker images and repositories
- 4.1 What is a Docker image?
- 4.2 Listing Docker images
- 4.3 Pulling images
- 4.4 Searching for images
-
4.5 Building our own images
- 4.5.1 Creating a Docker Hub account
- 4.5.2 Using Docker commit to create images
- 4.5.3 Building images with a Dockerfile
- 4.5.4 Building the image from our Dockerfile
- 4.5.5 What happens if an instruction fails?
- 4.5.6 Dockerfiles and the build cache
- 4.5.7 Using the build cache for templating
- 4.5.8 Viewing our new image
- 4.5.9 Launching a container from our new image
- 4.5.10 Dockerfile instructions
- 4.6 Pushing images to the Docker Hub
- 4.7 Deleting an image
- 4.8 Running your own Docker registry
- 4.9 Alternative Indexes
- 4.10 Summary
- 5 Testing with Docker
- 6 Building services with Docker
- 7 Docker Orchestration and Service Discovery
- 8 Using the Docker API
- 9 Getting help and extending Docker
Product information
- Title: The Docker Book
- Author(s):
- Release date: July 2014
- Publisher(s): Turnbull Press
- ISBN: None
You might also like
book
The Docker Workshop
Get started with Docker on your local machine and progress towards deploying useful applications in production …
book
Docker in Practice, Second Edition
Docker in Practice, Second Edition presents over 100 practical techniques, hand-picked to help you get the …
book
Docker: Up & Running, 2nd Edition
Docker is rapidly changing the way organizations deploy software at scale. However, understanding how Linux containers …
book
Mastering Docker - Fourth Edition
Unlock the full potential of the Docker containerization platform with this practical guide Key Features Explore …