Docker in Practice

5星(超过95%的资源)
所需积分/C币:10 2016-06-07 08:49:59 6.35MB PDF
14
收藏 收藏
举报

Docker in Practice By Ian Miell 2016 | 370 Pages | ISBN: 1617292729 | PDF | 6 MB Docker is impossible to ignore. This lightweight container system is easier to deploy and more flexible than traditional VMs. Built for simplicity and speed, it radically reduces your reliance on manual system administration for tasks like configuring servers, creating disposable (and portable!) development environments, and predictably rolling out applications on unknown systems. While the idea behind Docker is simple, it can have a major impact on how software is developed and deployed. Docker in Practice is a hands-on guide to over 100 specific techniques that can be used to get the most out of Docker. Following a cookbook-style Problem/Solution/Discussion format, this practical handbook offers instantly-useful solutions for important areas like effortless server maintenance and configuration, deploying microservices, creating safe environments for experimentation, and much more. The book takes readers from Docker basics to must-have practices like integrating Docker with Continuous Integration process, automating complex container creation with Chef, and orchestration with Kubernetes. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.
Docker in practice IAN MIELL AIDAN HOBSON SAYERS MANNING SHELTER SLAND For online information and ordering of this and other Manning books, please visit www.manning.com.Thepublisheroffersdiscountsonthisbookwhenorderedinquantity For more information, please contact Special sales Department Manning publications co 20 Baldwin road POBoⅹ761 Shelter island. nY11964 Emailorders@manning.com 02016 by Manning Publications Co. All rights reserved No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and manning Publications was aware of a trademark claim, the designations have been printed in initial caps OI lI caps Recognizing the importance of preserving what has been written, it is Mannings policy to have the books we publish printed on acid-free paper and we exert our best efforts to that end Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15 percent recycled and processed without the use of elemental chlorine Manning publications co Development editor: Cynthia Kane 20 Baldwin Road Technical development editors: Alain Couniot PO BoX 761 and robert Wenner Shelter island. ny11964 Copyeditor: Andy carroll Proofreader: Melody dolab Technical proofreader ose San Leandro Typesetter: Gordan Salinovic Cover designer: Marja Tudor ISBN9781617292729 Printed in the united states of america 12345678910-EBM-212019181716 brief contents PART 1 DOCKER FUNDAMENTALS Discovering Docker 3 2 Understanding Docker-inside the engine room 19 PaRt 2 DOCKER AND DEVELOPMENT Using Docker as a lightweight virtual machine 48 Day-to-day docker 65 5 Configuration management--getting your house in order 103 Part 3 DOCKER AND DEVOPS 143 Continuous integration: speeding up your development pipeline 145 Continuous delivery: a perfect fit for Docker principles 169 Network simulation: realistic environment testing without the pain 186 BRIEF CONTENTS PART 4 DOCKER IN PRODUCTION ...............................................213 9 Container orchestration: managing multiple docker containers 215 Docker and security 262 Plain sailing--Docker in production and operationa considerations 291 2 Docker in production--dealing with challenges 308 contents acknowledgments xix about the cover illustration xxiii PART 1 DOCKER FUNDAMENTALS recoverin D ocRe 1.1 The what and why of Docker 5 What is Docker? 5. What is Docker good for? 7. Key concepts 8 1.2Bu Iding a docker appli g P plicate 10 Ways to create a new Docker image 11 Writing a Dockerfile 12 Building a Docker image 13. Running a Docker container 14 cher layering 16 1.3 Summary 18 Understanding Docker--inside the engine room 19 2.1 Dockers architecture 20 CONTENTS 2.2 The Docker daemon 21 TECHNIQUE I Open your Docker daemon to the world 22 TECHNIQUE 2 Running containers as daemons 28 TEChNIQue 3 Moving docker to a different partition 26 2.3 The Docker client 27 TECHNIQUE 4 Use socat to monitor Docker APi traffic 27 TECHNIQUE 5 Using ports to connect to containers 29 TECHNIQUE 6 Linking containers for port isolation 31 TECHNIQUE 7 Using Docker in your browser 33 2.4 Docker registries 34 TECHNIQUE 8 Setting up a local Docker registry 35 2.5 The Docker hub 36 TECHNIQUE 9 Finding and running a Docker image 37 2.6 Summary 39 PaRT 2 DOCKER AND DEVELOPMENT 41 3 Using Docker as a lightweight virtual machine 43 3.1 From vm to container 44 TECHNIQUE 11 A host-like container 4? Ontainer 44 TECHNIQUe 10 Converting your vm to a container 44 TECHNIQUE 12 Splitting a system into microservice containers 49 3.2 Managing services on your containers 52 ECHNIOU UE 13 Managing the g e startup of your containers services 53 8.8 Saving and restoring your work 55 TECHNIQUE 14 The"save game approach to development 55 TECHNIQUE 15 Docker tagging 57 TECHNIQUE 16 Sharing images on the Docker Hub 59 TECHNIQUE 17 Referring to a specific image in builds 61 3.4 Environments as processes 62 TECHNIQUE 18 The"save game"approach to development 62 3.5 Summary 64 4 Day-to-day Docker 65 4.1 Volumes-a persistent problem 66 TECHNIQUE 19 Docker volumes-problems of persistence 66 TecHnique 20 Distributed volumes with BitTorrent Sync 67 CONTENTS TECHNIQUE 21 Retain your containers bash history 69 TECHNIQUE 22 Data containers 71 TECHNIQUE 23 Remote volume mounting using sshfs 74 TECHNIQUE 24 Sharing data over NFS 76 TECHNIQUE 25 Dev tools container 78 4.2 Running containers 79 TECHNIQUE 26 Running GUIs within Docker 79 TECHNIQUE 27 Inspecting containers 81 TEcHnique 28 Cleanly killing containers 83 TECHNIQUE 29 USing docker machine to provision Docker hosts 84 4.3 Building images 87 TECHNIQUE 30 Injecting files into your image using ADD 88 TECHNIQUE 31 Rebuilding without the cache 90 TECHNIQUE 32 Busting the cache 92 4. Staying ship-shape 93 TECHNIQUE 38 Running Docker without sudo 93 TECHNIQUe 34 Housekeeping containers 94 TECHNIQUE 35 Housekeeping volumes 95 TECHNIQUE 36 Detaching containers without stopping them 97 TECHNIQUE 37 Using DockerUI to manage your Docker daemon 98 TECHNIQUE 38 Generate a dependency graph of your Docker Images Q TECHNIque 39 Direct action-execute commands on your container 101 5 Summary 102 Configuration management-getting your house in order 103 5.1 Configuration management and Dockerfiles 104 TECHNIQUE 40 Create reliable bespoke tools with ENTRYPOINT 104 TECHNIQUE 41 Avoid package drift by specifying versions in your build 106 TECHNIQUE 42 Replacing text with perl-p-i-e 107 TECHNIQUE 48 Flattening images 109 TECHNIQUE 44 Managing foreign packages with alien 1ll TECHNIQUE 45 Reverse-engineer a Dockerfile from an 5.2 Traditional configuration management tools with Docker 116 TECHNIQUE 46 Traditional: using make with Docker 116

...展开详情
试读 127P Docker in Practice
立即下载 身份认证后 购VIP低至7折
一个资源只可评论一次,评论内容不能少于5个字
贺喜喜 英文清晰版,非常好的资源。
2018-08-10
回复
sqlchen 不错,所需积分略高
2018-02-13
回复
TJYCSCN 学习,很实用
2017-10-14
回复
contiyou 很好,很实用
2017-01-23
回复
您会向同学/朋友/同事推荐我们的CSDN下载吗?
谢谢参与!您的真实评价是我们改进的动力~
  • 签到新秀

  • 至尊王者

关注 私信
上传资源赚钱or赚积分
最新推荐
Docker in Practice 10积分/C币 立即下载
1/127
Docker in Practice第1页
Docker in Practice第2页
Docker in Practice第3页
Docker in Practice第4页
Docker in Practice第5页
Docker in Practice第6页
Docker in Practice第7页
Docker in Practice第8页
Docker in Practice第9页
Docker in Practice第10页
Docker in Practice第11页
Docker in Practice第12页
Docker in Practice第13页
Docker in Practice第14页
Docker in Practice第15页
Docker in Practice第16页
Docker in Practice第17页
Docker in Practice第18页
Docker in Practice第19页
Docker in Practice第20页

试读结束, 可继续阅读

10积分/C币 立即下载