万本电子书0元读

万本电子书0元读

顶部广告

Learning Docker - Second Edition电子书

售       价:¥

4人正在读 | 0人评论 9.8

作       者:Jeeva S. Chelladhurai,Vinod Singh,Pethuru Raj

出  版  社:Packt Publishing

出版时间:2017-05-31

字       数:40.2万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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.
目录展开

Title Page

Copyright

Credits

About the Authors

About the Reviewer

www.PacktPub.com

Customer Feedback

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

Getting Started with Docker

The key drivers for Dockerization

Differentiating between containerization and virtualization

The latest additions to the Docker platform

Windows containers

Installing the Docker Engine

Installing Docker on Ubuntu

Installing Docker using an automated script

Installing Docker on the Mac

Installing Docker on Windows

Understanding the Docker setup

Client-server communication

Downloading the first Docker image

Running the first Docker container

Troubleshooting Docker containers

Summary

Handling Docker Containers

Clarifying Docker terms

Docker images

Docker containers

Docker Registry

Working with Docker images

The Docker Hub

Searching Docker images

Working with an interactive container

Tracking changes inside containers

Controlling Docker containers

Housekeeping containers

Building images from containers

Launching a container as a daemon

Summary

Building Images

Docker's integrated image building system

A quick overview of the Dockerfile's syntax

The comment line

The parser directives

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

Understanding Docker Hub

Pushing images to Docker Hub

Automating the build process for images

Private repositories on Docker Hub

Organizations and teams on Docker Hub

The REST API for Docker Hub

Summary

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

A brief overview of container networking

Envisaging container as a service

Building an HTTP server image

Running the HTTP server image as a service

Connecting to the HTTP service

Exposing container services

Publishing a container's port - the -p option

NAT for containers

Retrieving the container port

Binding a container to a specific IP address

Autogenerating the Docker host port

Port binding using EXPOSE and -P option

Summary

Sharing Data with Containers

Data volume

The volume management command

Sharing host data

The practicality of host data sharing

Sharing data between containers

Data-only containers

Mounting data volume from other containers

The practicality of data sharing between containers

Avoiding common pitfalls

Directory leaks

The undesirable effect of data volume

Summary

Orchestrating Containers

Docker inbuilt service discovery

Linking containers

Orchestration of containers

Orchestrating containers using docker-compose

Installing docker-compose

The docker-compose file

The docker-compose command

Common usage

Summary

Testing with Docker

A brief overview of TDD

Testing your code inside Docker

Running the test inside a container

Using a Docker container as a runtime environment

Integrating Docker testing into Jenkins

Preparing the Jenkins environment

Automating the Docker testing process

Summary

Debugging Containers

Process-level isolation for Docker containers

Control groups

Debugging a containerized application

The docker exec command

The docker ps command

The docker top command

The docker stats command

The Docker events command

The docker logs command

The docker attach command

Debugging a Dockerfile

Summary

Securing Docker Containers

The security scenario in the containerization domain

The security ramifications of Docker containers

The security facets - virtual machines versus Docker containers

The prominent security-fulfilment features of containers

Immutable infrastructure

Resource isolation

Resource accounting and control

The root privilege - impacts and best practices

The trusted user control

Non-root containers

SELinux for container security

Loading the Docker images and the security implications

Image signing and verification using TUF

The emerging security approaches

The best practices for container security

Secure deployment guidelines for Docker containers

The future of Docker security

Summary

The Docker Platform – Distinct Capabilities and Use Cases

Describing containers

Distinguishing Docker containers

Briefing the Docker platform

The evolving Docker platform components

Implications of the Docker technology

Modern enterprise development

MSA and Docker containers

Case study

Infrastructure optimization

Case study

Enabling DevOps

Continuous integration and continuous deployment

Continuous delivery

Accurate testing

Facilitating CaaS

Accelerating workload modernization

Docker for stateful applications

Containers for edge computing

Devices networking, service enablement, and clustering

Device service registry for discovery

Fault tolerance

Caching

The Docker use cases

Integrating containers into workflows

Docker for HPC and TC applications

Containers for telecom applications

Summary

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部