Docker- Up and Running

4星(超过85%的资源)
所需积分/C币:12 2016-04-28 23:13:19 3.73MB PDF
2
收藏 收藏
举报

Docker is quickly changing the way that organizations are deploying software at scale. But understanding how Linux containers fit into your workflow - and getting the integration details right - are not trivial tasks. With this practical guide, you'll learn how to use Docker to package your applicat
Docker: Up and Running Karl matthias and sean p kane Beng. Cambridge. Farnham·Kn· Sebastopol, Tokyo OREILLY° Docker: Up and Running by Karl Matthias and Sean P. Kane Copyright o 2015 Karl Matthias, Sean P. Kane. All rights reserved Printed in the united states of america Published by o reilly Media, Inc, 1005 Gravenstein Highway North, Sebastopol, CA95472 OReilly books may be purchased for educational, business, or sales promotional use. Online editions are alsoavailableformosttitles(http://safaribooksonline.com).Formoreinformationcontactourcorporate institutionalsalesdepartment800-998-9938orcorporate@oreilly.com Editor: Brian anderson Indexer: Wendy catalano Production Editor: Melanie Yarbrough Interior Designer: David Futato Copyeditor: Gillian McGarvey Cover Designer: Ellie Volkhausen Proofreader: Sonia aruba Illustrator: Rebecca Demarest June 2015 First edition Revision History for the First Edition 2015-06-09: First Release Seehttp://oreilly.com/catalog/errata.csp?isbn=9781491917572forreleasedetails The O Reilly logo is a registered trademark of O Reilly Media, Inc. Docker: Up and Running, the cover image, and related trade dress are trademarks of o reilly media, Inc While the publisher and the authors have used good faith efforts to ensure that the information and instructions contained in this work are accurate, the publisher and the authors disclaim all responsibility for errors or omissions, including without limitation responsibility for damages resulting from the use of or reliance on this work. Use of the information and instructions contained in this work is at your own risk. If any code samples or other technology this work contains or describes is subject to open source licenses or the intellectual property rights of others, it is your responsibility to ensure that your use thereof complies with such licenses and/ or rights 978-1-491-91757-2 ILSI For my wife and children, who make everything worth it. And my parents, who pointed me towards the beautiful intersection between logic and passion Sean p Kane For my Mom, who got me to read, and my dad, who read to me. And for my wife and daughters, who are my bedrock Karl matthias Table of contents Foreword XI Preface XV 1. ntroduction The Birth of docker The Promise of docker Benefits of the docker workflow What docker isnt 2. Docker at a glance 113577 e鲁 Process Simplification Broad Support and Adoption 10 Architecture 10 Client/Server Model 10 Network Ports and Unix Sockets 11 Robust Tooling Docker Command-Line tool 12 Application Programming Interface(API) 13 Container Networking 13 Getting the Most from Docker 14 Containers are not Virtual machines 15 Containers Are lightweight 15 Towards an immutable infrastructure 16 Limited isolation 16 Stateless Applications 17 Externalizing State 17 The Docker Workflow 18 Revision Control 18 Building g Testing 20 Packaging 21 playing 21 The Docker Ecosystem 22 Wrap-Up 23 3. Installing Docker..... 25 Important Terminology 25 Docker client 26 Linux 27 Mac OsX1010 27 Microsoft windows 8 29 Docker server 29 Systemd-Based Linux Upstart-Based Linux init d-Based linux 30 Non-Linux vm-Based server 30 Test the Setup 38 Ubuntu 38 Fede 39 CentOs 39 p-p 39 4. Working with Docker Images........ 41 Anatomy of a Dockerfile 41 Building an image Running Your Image Environment variables 49 Custom base lmages 50 Storing Images 51 Public registries 51 Private registro 52 Authenticating to a Registry 52 Mirroring a Registry 54 Other Approaches to Image Delivery 57 5. Working with Docker Containers 59 What are Containers? 59 History of Containers 60 Creating a Container 62 Table of contents Basic Configuration 62 Storage volumes Resource quotas 67 Starting a Container Auto-Restarting a Container 74 Stopping a Container 74 Killing a Container Pausing and Unpausing a Container 76 Cleaning Up Containers and Images Next Steps 78 6. Exploring Dockert 79 Printing the Docker Version erver Information Downloading Image Updates 81 Inspecting a container 82 Getting Inside a running container 83 83 senter 84 Exploring the Shell 87 Returning a esu 87 Docker l 89 Monitoring Docker 91 Container stats 2 Docker events 5 aDvisor Exploration 100 7. The path to production containers 103 Deploying 103 Classes of Tooling 104 Orchestration Tools 105 Distributed schedulers 106 Deployment Wrap-Up 107 Testing Containers 107 Quick Overview 108 Outside dependencies 111 8. Debugging Containers. Process Output 113 Process Inspection 117 Controlling Processes 118 Table of contents|ⅶi Network Inspection 119 Image History Inspecting a container 121 Filesystem Inspection 122 Moving along 123 9. Docker at scale 125 Docker Swarm 126 Centurion 130 Amazon ec2 Container service 134 IAM Role setup 135 AWS CLI Setup 136 Container instances 137 Tasks Testing the Task 145 Stopping the task 146 Wrap-Up 147 10. Advanced Topics Pluggable Backends 149 Execution drivers 149 Sto 153 Containers in detail 156 Control groups (groups 156 Kernel Namespaces, User Namespaces 6 Security 164 How Secure is your container 164 How Secure is the docker daemon? 170 Networking 171 11. Designing Your Production Container Platform.. .............. 175 The Twelve-Factor App 176 C debase Dependencies 176 Config 179 Backing services 180 Build Release, run 181 Pr rocesses 181 Port binding 181 C occurrenc 182 Disposability 182 Development/Production Parity 183 I Table of Contents

...展开详情
立即下载 身份认证后 购VIP低至7折
一个资源只可评论一次,评论内容不能少于5个字
jinicn 谢谢分享,一本docke入门的好书!
2018-04-02
回复
jfding 感谢分享.值得推荐
2018-02-05
回复
wztny 在google book看了些片段,现在终于能看全了,感谢分享!!
2016-08-04
回复
您会向同学/朋友/同事推荐我们的CSDN下载吗?
谢谢参与!您的真实评价是我们改进的动力~
关注 私信
上传资源赚钱or赚积分
最新推荐
Docker- Up and Running 12积分/C币 立即下载
1/0