万本电子书0元读

万本电子书0元读

顶部广告

Developing with Docker电子书

售       价:¥

1人正在读 | 0人评论 9.8

作       者:Jarosław Krochmalski

出  版  社:Packt Publishing

出版时间:2016-11-01

字       数:223.8万

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

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

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Change the way your organization deploys software at scale with this face paced guide to the world of Docker About This Book Cut through the noise and in simple terms learn to package your applications and test, ship, and scale your containers Find and build images and successfully run your programs within containers Build, deploy, and test your Docker containers and put them to work in production Who This Book Is For This book is for IT professionals, system administrators, and DevOps professionals or anyone looking to quickly develop and deploy software to production at scale. If you are interested in Docker, DevOps, or containers in general, don’t look any further. What You Will Learn Understand Docker’s architecture Build, ship, and run distributed applications Deploy, automate, and manage the execution of applications within Docker Scale and virtualize images and containers Utilize the networking features that Docker offers Use repositories to store and retrieve images In Detail This fast-paced practical guide will get you up and running with Docker. Using Docker, you will be able to build, ship, and run many distributed applications in real time. You will start with quickly installing Docker and start working with images and containers. We will present different types of containers and their applications, and show you how to find and build images. You will learn how you can contribute to the image repository by publishing different images. This will familiarize you with the image building process and you will be able to successfully run your programs within containers. By finishing this book, you will be well equipped in deploying your applications using Docker and will have a clear understanding of concepts, techniques, and practical methods to get it running in production systems. Style and approach This book takes a fast-paced practical approach that quickly gets you up and running with Docker so that you spend less time learning and more time deploying Docker containers effectively. This book contains a mix of concepts, practical examples, techniques, and the most up-to-date content to run things effectively in production. We’ll show you the easiest way to speed up your development and deployment with Docker.
目录展开

Developing with Docker

Developing with Docker

Credits

About the Author

About the Reviewer

www.PacktPub.com

Why subscribe?

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Errata

Piracy

Questions

1. Introduction to Docker

The basic idea

Containerization versus virtualization

Traditional virtualization

Containerization

Benefits of using Docker

Speed and size

Reproducible and portable builds

Immutable and agile infrastructure

Tools and APIs

Tools overview

Docker Engine and Docker Engine client

Docker Machine

Kitematic

Docker compose

Oracle VirtualBox

Git

Summary

2. Installing Docker

Hardware requirements

Installing on Windows

Installing on Mac OS

Installing on Linux

Installing on the cloud — AWS

Summary

3. Understanding Images and Containers

Images

Layers

Containers

Saving changes to a container

Docker registry, repository and index

Summary

4. Networking and Persistent Storage

Docker networking

Default networks

No networking

Host network

Bridged network

Creating a network

Running a container in a network

Creating multi-host networking

Swarm mode

Key-value store overlay networking

Exposing and mapping ports

Linking containers

Networking plugins

Docker volumes

Creating a volume

Removing a volume

Volume drivers

Summary

5. Finding Images

The Docker Hub

Docker Hub account

Organization account and teams

Collaborators

Private Repositories

Logging into Docker Hub

Searching for images

Image naming and tags

Searching through the web interface

Searching using the command line

Docker Hub and docker registry REST API

Summary

6. Creating Images

Dockerfile instructions

FROM

MAINTAINER

ADD

COPY

CMD

ENTRYPOINT

LABEL

EXPOSE

RUN

USER

VOLUME

WORKDIR

ARG

ONBUILD

STOPSIGNAL

HEALTHCHECK

SHELL

Using Dockerfiles

Summary

7. Running Containers

Runtime modes - detached and foreground

Detached

Foreground

Identifying images and containers

PID settings

UTS settings

Overriding default commands from Dockerfile

Overriding the CMD

Overriding the ENTRYPOINT

Executing arbitrary commands with exec

Monitoring containers

Viewing logs

Container events

Inspecting a container

Statistics

Container exit codes and restart policies

no

always

on-failure

unless-stopped

Updating a restart policy on a running container

Runtime constraints on resources

Memory

Processors

Updating constraints on a running container

Docker Swarm mode

The purpose

Terminology

Swarm mode commands

Summary

8. Publishing Images

Publishing images

Tagging

Untagging the image

Pushing the image

Webhooks and automated builds

Setting up the automated build

Build Triggers

Webhooks and continuous deployments

Summary

9. Using Docker in Development

Using Docker with Maven

Spotify's Maven Docker plugin

fabric8io Maven Docker plugin

Spring Boot application in Docker container

Packaging Angular.js application

Summary

Appendix A. More Resources

Official documentation

Awesome Docker

Training

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

发表评论

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

买过这本书的人还买过

读了这本书的人还在读

回顶部