dockerdeepdive.pdf

(15172 KB) Pobierz
Docker Deep Dive
Zero to Docker in a single book!
Nigel Poulton
This book is for sale at
http://leanpub.com/dockerdeepdive
This version was published on 2018-02-11
This is a
Leanpub
book. Leanpub empowers authors and publishers with the Lean
Publishing process.
Lean Publishing
is the act of publishing an in-progress ebook
using lightweight tools and many iterations to get reader feedback, pivot until you
have the right book and build traction once you do.
© 2016 - 2018 Nigel Poulton
Huge thanks to my wife and kids for putting up with a geek in the house who
genuinely thinks he’s a bunch of software running inside of a container on top of
midrange biological hardware. It can’t be easy living with me!
Massive thanks as well to everyone who watches my Pluralsight videos. I love
connecting with you and really appreciate all the feedback I’ve gotten over the
years. This was one of the major reasons I decided to write this book! I hope it’ll be
an amazing tool to help you drive your careers even further forward.
Contents
0: About the book
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
What’s this Docker Certified Associate stuff? . . . . . . . . . . . . . . .
What about a print (paperback) version . . . . . . . . . . . . . . . . . .
Why should I read this book or care about Docker? . . . . . . . . . . . .
Isn’t Docker just for developers? . . . . . . . . . . . . . . . . . . . . . .
Should I buy the book if I’ve already watched your video training courses?
How the book is organized . . . . . . . . . . . . . . . . . . . . . . . . .
Versions of the book . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Having problems getting the latest updates on your Kindle? . . . . . . .
1
1
2
3
3
3
4
5
6
Part 1: The big picture stuff
1: Containers from 30,000 feet
. . . . . . . .
The bad old days . . . . . . . . . . . . . .
Hello VMware! . . . . . . . . . . . . . . .
VMwarts . . . . . . . . . . . . . . . . . .
Hello Containers! . . . . . . . . . . . . .
Linux containers . . . . . . . . . . . . . .
Hello Docker! . . . . . . . . . . . . . . .
Windows containers . . . . . . . . . . . .
Windows containers vs Linux containers .
What about Mac containers? . . . . . . .
What about Kubernetes . . . . . . . . . .
Chapter Summary . . . . . . . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
. . . . . . . . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
7
8
8
8
9
9
10
10
11
11
11
12
13
CONTENTS
2: Docker
. . . . . . . . . . . . . . . . . . . . . .
Docker - The TLDR . . . . . . . . . . . . . .
Docker, Inc. . . . . . . . . . . . . . . . . . . .
The Docker runtime and orchestration engine
The Docker open-source project (Moby) . . .
The container ecosystem . . . . . . . . . . .
The Open Container Initiative (OCI) . . . . .
Chapter summary . . . . . . . . . . . . . . .
3: Installing Docker
. . . . . . . . . . . . . . .
Docker for Windows (DfW) . . . . . . . . .
Docker for Mac (DfM) . . . . . . . . . . . .
Installing Docker on Linux . . . . . . . . .
Installing Docker on Windows Server 2016 .
Upgrading the Docker Engine . . . . . . . .
Docker and storage drivers . . . . . . . . .
Chapter Summary . . . . . . . . . . . . . .
4: The big picture
. . .
The Ops Perspective
The Dev Perspective
Chapter Summary .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
14
14
14
16
17
18
19
21
22
22
28
32
35
37
40
46
47
48
56
61
Part 2: The technical stuff
5: The Docker Engine
. . . . . . . .
Docker Engine - The TLDR . . .
Docker Engine - The Deep Dive
Chapter summary . . . . . . . .
6: Images
. . . . . . . . . . . . . .
Docker images - The TLDR . .
Docker images - The deep dive
Images - The commands . . . .
Chapter summary . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
. . . . . . . . . . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
62
63
63
64
73
74
74
75
102
103
Zgłoś jeśli naruszono regulamin