Home Page Icon
Home Page
Table of Contents for
Mastering Docker
Close
Mastering Docker
by Scott Gallagher, Russ McKendrick
Mastering Docker - Second Edition
Title Page
Mastering Docker
Second Edition
Copyright
Mastering Docker
Second Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Why subscribe?
Customer Feedback
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
Docker Overview
Understanding Docker
Developers
The problem
The Docker solution
Operators
The problem
The Docker solution
Enterprise
The problem
The Docker solution
Differences between dedicated hosts, virtual machines, and Docker
Docker installers/installation
Installing on Linux (Ubuntu 16.04)
Installing on macOS
Installing on Windows 10 Professional
Older operating systems
The Docker command-line client
The Docker ecosystem
Summary
Building Container Images
Introducing the Dockerfile
Reviewing the Dockerfile in depth
FROM
LABEL
RUN
COPY and ADD
EXPOSE
ENTRYPOINT and CMD
Other Dockerfile commands
USER
WORKDIR
ONBUILD
ENV
Dockerfiles – best practices
Building Docker images
The docker build command
Build an image from a Dockerfile
.dockerignore
Building custom images using Dockerfiles
Using an existing container
Building from scratch
Environmental variables
Using environmental variables in your Dockerfile
Putting it all together
Summary
Storing and Distributing Images
Docker Hub
Dashboard
Explore
Organizations
Create
Profile and settings
The Stars page
Creating an automated build
Setting up your code
Setting up Docker Hub
Pushing your own image
Docker Store
Docker Registry
An overview of Docker Registry
Deploying your own registry
Docker Trusted Registry
Third-party registries
Quay
Amazon EC2 Container Registry
Microbadger
Summary
Managing Containers
Docker container commands
The basics
Interacting with your containers
Attach
exec
Logs and process information
logs
top
stats
Resource limits
Container states and miscellaneous commands
Pause and unpause
Stop, start, restart, and kill
Removing containers
Miscellaneous commands
Docker networking and volumes
Docker networking
Docker volumes
Summary
Docker Machine
An introduction to Docker Machine
Deploying local Docker hosts with Docker Machine
Launching Docker hosts in the cloud
DigitalOcean
Amazon Web Services
More Docker networking
Using other base operating systems
CoreOS on DigitalOcean
RancherOS on VirtualBox
Summary
Docker Compose
Introducing Docker Compose
Our Docker Compose application
Docker Compose YAML file
Mobycounter YAML
The voting application
Docker Compose commands
Up and PS
Config
Pull, build, and create
Start, stop, restart, pause, and unpause
Top, logs, and events
Exec and run
Scale
Kill, rm, and down
Summary
Docker Swarm
Installing Docker Swarm
Docker Swarm roles
Swarm manager
Swarm worker
Using Docker Swarm
Creating a cluster
Joining workers
Listing nodes
Managing a cluster
Promoting a worker node
Demoting a manager node
Draining a node
Docker Swarm services and stacks
Services
Stacks
Deleting a Swarm cluster
Load balancing, overlays, and scheduling
Ingress load balancing
Network overlays
Scheduling
Summary
Portainer
The road to Portainer
Getting Portainer up and running
Using Portainer
The Dashboard
Application templates
Containers
Stats
Logs
Console
Images
Networks and volumes
Networks
Volumes
Events
Docker
Portainer and Docker Swarm
Creating the Swarm
The Portainer service
Swarm differences
Dashboard
Swarm
Services
Endpoints
Summary
Rancher
Installing and configuring authentication
Installation
Configuring authentication
Creating a herd
Launching stacks
User Defined Stacks
Container view
Catalog
Removing the herd
Other cluster options
Summary
Docker Cloud
Creating an account
Linking your accounts
DigitalOcean
Amazon Web Services
Launching nodes
Launching a stack
Swarm mode
Docker for AWS
Summary
Docker Security
Container considerations
The advantages
Your Docker host
Image trust
Docker commands
Run
Diff
Best practices
Docker - best practices
The Center for Internet Security benchmark
Host configuration
Docker daemon configuration
Docker daemon configuration files
Container images/runtime and build files
Container runtime
Docker security operations
The Docker Bench Security application
Running on Docker for macOS and Docker for Windows
Running on Ubuntu Linux
Understanding the output
Host configuration
Docker daemon configuration
Docker daemon configuration files
Container images and build files
Container runtime
Docker security operations
Summing up Docker Bench
Docker security scanning
Third-party security services
Quay
Clair
Summary
Docker Workflows
Docker for development
Monitoring
Extending to external platforms
Tectonic
Heroku
Amazon Elastic Container Service
What does production look like?
Docker hosts
Mixing of processes
Multiple isolated Docker hosts
Routing to your containers
Clustering
Compatibility
Reference architectures
Cluster communication
Image registries
Summary
Next Steps with Docker
Service discovery
Consul
Running Consul
Running Registrator
Querying Consul
Consul template
Highly available Consul
etcd
Docker API
The Moby Project
Contributing to Docker
Contributing to the code
Offering Docker support
Other contributions
Summary
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Copyright
Next
Next Chapter
Second Edition
Mastering Docker
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset