Mastering Docker: rethink what's possible with Docker--become an expert in the innovative containerization tol to unlock new opportunities in the way you use and deploy software 9781785287039, 3041921685, 1785287036, 9781785289248, 1785289241

Unlock new opportunities using Docker's most advanced features.About This Book Experience first- and third-party to

206 96 9MB

English Pages 284 Year 2015

Report DMCA / Copyright

DOWNLOAD AZW3 FILE

Table of contents :
Cover
Copyright
Credits
About the Author
About the Reviewer
www.PacktPub.com
Table of Contents
Preface
Chapter 1: Docker Review
Understanding Docker
Difference between Docker and typical VMs
Dockerfile
Docker networking/linking
Docker installers/installation
Types of installers
Controlling the Docker VM (boot2docker)
Docker Machine --
the new boot2docker
Kitematic
The Docker commands
The Docker images
Searching for the Docker images
Manipulating the Docker images
Stopping containers
Summary
Chapter 2: Up and Running
Dockerfile
A short review of Dockerfile Reviewing Dockerfile in depthLABEL
ADD or COPY
ENTRYPOINT
USER
WORKDIR
ONBUILD
Dockerfile --
best practices
Docker build
The docker build command
.dockerignore
Building images using Dockerfile
Building a base image using an existing image
Building your own containers
Using tar
Using scratch
Docker Hub
The Docker Hub location
Public repositories
Private repositories
Docker Hub Enterprise
Environmental variables
Using environmental variables in your Dockerfile
Creating a MySQL username, database, and setting permissions
Adding a file to the system
Docker volumes Data volumesData volume containers
Docker volume backups
Summary
Chapter 3: Container Image Storage
Docker Hub
Dashboard
Explore the repositories page
Organizations
The Create menu
Settings
The Stars page
Docker Hub Enterprise
Comparing Docker Hub to Docker Subscription
Docker Subscription for server
Docker Subscription for cloud
Docker Registry
An overview of Docker Registry
Docker Registry versus Docker Hub
Automated builds
Setting up your code
Setting up Docker Hub
Putting all the pieces together
Creating your own registry
Summary
Chapter 4: Managing Containers The Docker commandsdocker attach
docker diff
docker exec
docker history
docker inspect
docker logs
docker ps
docker stats
docker top
Using your existing management suite
Puppet
Chef
Ansible
SaltStack
Docker Swarm
What is Docker Swarm?
What can Docker Swarm do?
Summary
Chapter 5: Docker Security
Containers versus VMs
The good
The not so bad
What to look out for
The Docker commands
docker run
docker diff
Docker security --
best practices
Docker --
best practices
CIS guide --
host configuration
CIS guide --
Docker daemon configuration CIS guide --
Docker daemon configuration filesCIS guide --
container images/runtime
CIS guide --
Docker security operations
The Docker bench security application
Running the tool
Understanding the output
Summary
Chapter 6: Docker Machine
Installation
Using Docker Machine
Local VM
Cloud environment
Docker Machine commands
active
config
env
inspect
ip
kill
ls
restart
rm
scp
ssh
start
stop
upgrade
url
TLS
Summary
Chapter 7: Docker Compose
Installing Docker Compose
Installing on Linux
Installing on OS X and Windows
Docker Compose YAML file
The Docker Compose usage

Mastering Docker: rethink what's possible with Docker--become an expert in the innovative containerization tol to unlock new opportunities in the way you use and deploy software
 9781785287039, 3041921685, 1785287036, 9781785289248, 1785289241

  • 0 0 0
  • Like this paper and download? You can publish your own PDF file online for free in a few minutes! Sign Up
Recommend Papers