Book description
Optimize the power of Docker to run your applications quickly and easily
- Learn to compose, use, and publish the Docker containers
- Leverage the features of Docker to deploy your existing applications
- Explore real world examples of securing and managing Docker containers
In Detail
Docker is a next-generation platform for simplifying application containerization life-cycle. Docker allows you to create a robust and resilient environment in which you can generate portable, composable, scalable, and stable application containers.
This book is a step-by-step guide that will walk you through the various features of Docker from Docker software installation to the impenetrable security of containers. The book starts off by elucidating the installation procedure for Docker and a few troubleshooting techniques. You will be introduced to the process of downloading Docker images and running them as containers. You'll learn how to run containers as a service (CaaS) and also discover how to share data among containers. Later on, you'll explore how to establish the link between containers and orchestrate containers using Docker Compose. You will also come across relevant details about application testing inside a container. You will discover how to debug a container using the docker exec command and the nsenter tool. Finally, you will learn how to secure your containers with SELinux and other proven methods.
What You Will Learn
- Build a Docker image using Dockerfiles
- Push and publish images on Docker Hub
- Run your own private Docker Hub and upload images onto it
- Create and run services inside a container to deploy your applications with ease
- Share data between the Docker host and containers
- Orchestrate multiple containers with Docker Compose
- Test and debug applications inside a Docker container
- Secure your Docker containers with SELinux
Table of contents
-
Learning Docker
- Table of Contents
- Learning Docker
- Credits
- About the Authors
- About the Reviewers
- www.PacktPub.com
- Preface
-
1. Getting Started with Docker
- An introduction to Docker
- Docker on Linux
- Differentiating between containerization and virtualization
- Installing the Docker engine
- Understanding the Docker setup
- Downloading the first Docker image
- Running the first Docker container
- Running a Docker container on Amazon Web Services
- Troubleshooting
- Summary
- 2. Handling Docker Containers
-
3. Building Images
- Docker's integrated image building system
- A quick overview of the Dockerfile's syntax
-
The Dockerfile build instructions
- The FROM instruction
- The MAINTAINER instruction
- The COPY instruction
- The ADD instruction
- The ENV instruction
- The USER instruction
- The WORKDIR instruction
- The VOLUME instruction
- The EXPOSE instruction
- The RUN instruction
- The CMD instruction
- The ENTRYPOINT instruction
- The ONBUILD instruction
- The .dockerignore file
- A brief overview of the Docker image management
- Best practices for writing Dockerfiles
- Summary
- 4. Publishing Images
- 5. Running Your Private Docker Infrastructure
- 6. Running Services in a Container
- 7. Sharing Data with Containers
- 8. Orchestrating Containers
- 9. Testing with Docker
- 10. Debugging Containers
-
11. Securing Docker Containers
- Are Docker containers secure enough?
- Security-Enhanced Linux for container security
- The best practices for container security
- Digital signature verification
- Summary
- Index
Product information
- Title: Learning Docker
- Author(s):
- Release date: June 2015
- Publisher(s): Packt Publishing
- ISBN: 9781784397937
You might also like
video
Learning Docker
In this Learning Docker training course, expert author Rick Fast will teach you how to create, …
book
Learning Docker - Second Edition
Docker lets you create, deploy, and manage your applications anywhere at anytime ? flexibility is key …
book
Docker: Up & Running
Updated to cover Docker version 1.10 Docker is quickly changing the way that organizations are deploying …
book
Learn Docker - Fundamentals of Docker 18.x
Enhance your software deployment workflow using containers About This Book Get up-and-running with basic to advanced …