Book description
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
About This Book
- This up-to-date edition shows how to leverage Docker's features to deploy your existing applications
- Learn how to package your applications with Docker and build, ship, and scale your containers
- Explore real-world examples of securing and managing Docker containers
Who This Book Is For
This book is ideal for developers, operations managers, and IT professionals who would like to learn about Docker and use it to build and deploy container-based apps. No prior knowledge of Docker is expected.
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
In Detail
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.
Style and approach
This step-by-step guide will walk you through the features and use of Docker, from Docker software installation to the impenetrable security of containers.
Table of contents
- Preface
- Getting Started with Docker
- Handling Docker Containers
-
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 ARG instruction
- The environment variables
- The USER instruction
- The WORKDIR instruction
- The VOLUME instruction
- The EXPOSE instruction
- The LABEL instruction
- The RUN instruction
- The CMD instruction
- The ENTRYPOINT instruction
- The HEALTHCHECK instruction
- The ONBUILD instruction
- The STOPSIGNAL instruction
- The SHELL instruction
- The .dockerignore file
- A brief on the Docker image management
- Best practices for writing a Dockerfile
- Summary
- Publishing Images
-
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
- Running Services in a Container
- Sharing Data with Containers
- Orchestrating Containers
- Testing with Docker
- Debugging Containers
-
Securing Docker Containers
- The security scenario in the containerization domain
- Immutable infrastructure
- The best practices for container security
- Summary
-
The Docker Platform – Distinct Capabilities and Use Cases
- Describing containers
- Briefing the Docker platform
- Implications of the Docker technology
- The Docker use cases
- Summary
Product information
- Title: Learning Docker - Second Edition
- Author(s):
- Release date: May 2017
- Publisher(s): Packt Publishing
- ISBN: 9781786462923
You might also like
book
Docker in Action, Second Edition
Docker in Action, Second Edition teaches you the skills and knowledge you need to create, deploy, …
book
Docker: Up & Running, 2nd Edition
Docker is rapidly changing the way organizations deploy software at scale. However, understanding how Linux containers …
book
Learn Docker - Fundamentals of Docker 19.x - Second Edition
Explore the core functionality of containerizing your applications and making them production-ready Key Features Grasp basic …
book
Docker: Up & Running, 3rd Edition
Docker and Linux containers have fundamentally changed the way that organizations develop, deliver, and run software …