09.03.2018 Views

docker_succinctly

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Table of Contents<br />

The Story behind the Succinctly Series of Books ................................................................................... 7<br />

About the Author ......................................................................................................................................... 9<br />

Chapter 1 Introducing Docker................................................................................................................. 10<br />

What is Docker? ..................................................................................................................................... 10<br />

Installing Docker .................................................................................................................................... 10<br />

Running containers ................................................................................................................................ 13<br />

Summary ................................................................................................................................................ 19<br />

Chapter 2 Packaging Applications with Docker ................................................................................... 20<br />

Meet the Dockerfile ................................................................................................................................ 20<br />

The main Dockerfile instructions ............................................................................................................ 22<br />

How Docker builds an image ................................................................................................................. 25<br />

Summary ................................................................................................................................................ 29<br />

Chapter 3 Image Registries and the Docker Hub ................................................................................ 30<br />

About image registries ........................................................................................................................... 30<br />

Using the Docker Hub ............................................................................................................................ 30<br />

Tags and image versions ....................................................................................................................... 32<br />

Automating builds .................................................................................................................................. 34<br />

Choose your base image carefully ........................................................................................................ 36<br />

Running your own registry ..................................................................................................................... 38<br />

Other registry options ............................................................................................................................. 40<br />

Summary ................................................................................................................................................ 40<br />

Chapter 4 Data Storage in Docker .......................................................................................................... 41<br />

Containers and their data....................................................................................................................... 41<br />

Images, containers, and volumes .......................................................................................................... 41<br />

4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!