Orchestrating Docker

5星(超过95%的资源)
所需积分/C币:10 2015-06-26 20:20:21 6.26MB PDF
2
收藏 收藏
举报

Docker is growing in popularity by day because of its great utility, the fact that it's user friendly, and the vibrant community. This book will help you transform the way you build, test, and deploy your applications with Docker, making it easier and enjoyable. The book starts off with the install
Orchestrating docker Copyright o 2015 Packt Publishi ing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews rt has been made in the preparation of this book to ensure the accuracy of the information presented However the information contained in this book is sold without warranty either express or implied. Neither the author nor packt Publishing and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals However, Packt Publishing cannot guarantee the accuracy of this information First published January 2015 Production reference: 1190115 Published by Packt Publishing ltd Livery place 35 Livery street Birmingham b3 2PB UK ISBN978-1-78398-478-7 www.packtpub.com Credits Author Project Coordinator Shrikrishna holla Neha thakur Reviewers Proofreaders Amit mund Simran bhogal Taichi Nakashima Maria gould Tommaso patrizi Ameesha Green Paul hindle Acquisition Editor L: Pinto Mariamman Chettiyar Content Development editor Parita Khedeka Graphic Abhinash sahu Technical editor Tanmayee patil Production Coordinator Komal ramchandani Copy Editor Vikrant phadke Cover Work Komal ramchandani About the author Shrikrishna Holla is a full-stack developer based in bangalore and Chennai India. He loves biking, listening to music, and occasionally, sketching. You can find him frequently in hackathons, wearing a hoodie and sipping Red Bull, preparing for an all-nighter He currently works as a product developer for Freshdesk a cloud- based customer support platform You can get in touch with him on twitter(@srikrishnaholla or find him at the Docker IRC channel(#docker on Freenode)with the shrikrishna handle I would like to thank the creators of docker without whom this book wouldn' t have seen the light of the day To my editors parita and Larissa, it has been a long journey, but you have been extremely supportive and helpful week after week. To my parents, you have been, are, and will always be my inspiration - the final ray of ligh in the darkest dungeon. To my sisters, for the soothing words of advice whenever i've had the blues. To all my teachers who helped me to choose my pat th To my friends, who help mc forget all my worries To the countless people who have given me encouragement suggestions, and feedback, I couldnt have done this without you To my readers, thank you for trusting me with your learning About the reviewers Amit mund has been working on linux and other technologies for automation and infrastructure monitoring since 2004. He is currently associated with Akamai Technologies. He has previously worked for website-hosting teams at Amazon and yahoo I would like to thank my family, my mentors from Bhawanipatna and my friends and colleagues for helping me in my learning and development throughout my professional career Taichi Nakashima is a Tokyo-based web developer and software engineer. He is also a blogger and he loves Docker, Golang, and DevOps. Taichi is also an OSS contributorYoucanfindhiscontributionsathttps://github.com/tcnksm. Tommaso Patrizi is Docker fan who used the technology since its first release and had machines in production with Docker since Version 0.6.0. He has planned and deployed a basic private Paas with Docker and Open vSwitch Tommaso is an enthusiastic Ruby and Ruby on Rails programmer. He strives for simplicity, which he considers to be the perfect synthesis between code effectiveness, maintainability, and beauty. He is currently learning the Go language Tommaso is a system administrator. I le has broad knowledge of operating systems(Microsoft, Linux, OSX, SQL Server, MySql, PostgreSQL, and PostGIS virtualization, and the cloud(vSphere, VirtualBox, and Docker Www.Packtpub.com Support files, eBooks, discount offers, and more Forsupportfilesanddownloadsrelatedtoyourbookpleasevisitwww.packtpub.cOm Did you know that Packt offers e book versions of every book published, with PDF andepubfilesavailableYoucanupgradetotheeboOkversionatwww.packtpub com and as a print book customer, you are entitled to a discount on the e Book copy Getintouchwithusatservice@packtpub.comformoredetails. Atwww.Packtpub.comyoucanalsoreadacollectionoffreetechnicalarticles sign up for a range of free newsletters and receive exclusive discounts and offers on packt books and ebooks PUPACKTLIB https://www2.packtpub.ccm/books/subscription/packtlib Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books Why subscribe? Fully searchable across every book published by Packt Copy and paste print, and bookmark content On demand and accessible via a web browser Free access for packt account holders Ifyouhaveanaccountwithpacktatwww.Packtpubcom,youcanusethistoaccess PacktLib today and view 9 entirely free books. Simply use your login credentials for immediate access Table of contents Preface Chapter 1: Unboxing Docker Installing Docker Installing Docker in Ubuntu Installing Docker in Ubuntu Trusty 14.04 LTS Installing Docker in Ubuntu Precise 12.04 LTS Upgrading Docker Mac osx and windows 577789022 Upgrading Boot2 Docker Open Stack Installation with devstack 13 Installing Docker for Open Stack manually Nova configuration 14 Glance configuration 15 Docker-Open stack flow 15 Inception Build docker in Docker Dependencies 66 Building docker from source Verifying Installation 18 Useful tips 19 Giving non- root access 20 UFW settings 20 Summary Chapter 2: Docker CLI and Dockerfile 23 Docker terminologies Docker container 24 The docker daemon 24 Table of contents Docker client 25 Dockerfile 25 Docker registry 25 Docker commands 25 The daemon command 26 The version command 27 The info command 27 The run command 28 Running a server 30 The search command 33 The pull command 34 The start command 34 The stop command 34 The restart command 35 The rm command 35 The ps command 36 The logs command 37 The inspect command 37 The top command 39 The attach command 40 The kill command 40 The cp command 40 The port command 41 Running your own project 42 The diff command 43 The commit command 43 The images command 44 The rmi command 46 The save command 46 The load command 46 The export command 46 The import command 47 The tag command 47 The login command 48 The push command 48 The history command 48 The events command 48 The wait command 49 The build command 50 Uploading to Docker daemon 51 Table of Contents Dockerfile 54 The from instruction 55 The maintainer instruction 55 The run instruction 55 The cmd instruction 56 The entrypoint instruction 57 The worKdir instruction 59 The EXPose instruction 59 The env instruction 59 The User instruction 60 The VolUME instruction 60 The add instruction 60 The coPy instruction 61 The unbuild instruction 62 Docker workflow-pull-use-modify-commit-push 65 Automated builds 66 Build triggers 68 Webhooks 68 Summary 69 Chapter 3: Configuring Docker Containers Constraining resources 72 Setting CPU share 73 Setting memory limit 73 Setting a storage limit on the virtual filesystem(Devicemapper) 74 Devicemapper configurations 76 Managing data in containers with volumes Data-only container 78 Using volumes from another container 78 Use case -Mongodb in production on docker Configuring docker to use a different storage driver 80 Using devicemapper as the storage driver 80 Using btrfs as the storage driver 80 Configuring Dockers network settings 81 Configuring port forwarding between container and host 84 Custom IP address range 84 Linking containers 85 Linking containers within the same host 85 Cross-host linking using ambassador containers 86 Use case-a multi-host redis environment 87 Summary 88

...展开详情
试读 127P Orchestrating Docker
立即下载 身份认证后 购VIP低至7折
一个资源只可评论一次,评论内容不能少于5个字
shadow2010 感谢分享,学习一下
2016-07-28
回复
kimgao999 非常感谢分享~
2016-07-17
回复
您会向同学/朋友/同事推荐我们的CSDN下载吗?
谢谢参与!您的真实评价是我们改进的动力~
关注 私信
上传资源赚钱or赚积分
最新推荐
Orchestrating Docker 10积分/C币 立即下载
1/127
Orchestrating Docker第1页
Orchestrating Docker第2页
Orchestrating Docker第3页
Orchestrating Docker第4页
Orchestrating Docker第5页
Orchestrating Docker第6页
Orchestrating Docker第7页
Orchestrating Docker第8页
Orchestrating Docker第9页
Orchestrating Docker第10页
Orchestrating Docker第11页
Orchestrating Docker第12页
Orchestrating Docker第13页
Orchestrating Docker第14页
Orchestrating Docker第15页
Orchestrating Docker第16页
Orchestrating Docker第17页
Orchestrating Docker第18页
Orchestrating Docker第19页
Orchestrating Docker第20页

试读结束, 可继续阅读

10积分/C币 立即下载