售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Developing with Docker
Developing with Docker
Credits
About the Author
About the Reviewer
www.PacktPub.com
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. Introduction to Docker
The basic idea
Containerization versus virtualization
Traditional virtualization
Containerization
Benefits of using Docker
Speed and size
Reproducible and portable builds
Immutable and agile infrastructure
Tools and APIs
Tools overview
Docker Engine and Docker Engine client
Docker Machine
Kitematic
Docker compose
Oracle VirtualBox
Git
Summary
2. Installing Docker
Hardware requirements
Installing on Windows
Installing on Mac OS
Installing on Linux
Installing on the cloud — AWS
Summary
3. Understanding Images and Containers
Images
Layers
Containers
Saving changes to a container
Docker registry, repository and index
Summary
4. Networking and Persistent Storage
Docker networking
Default networks
No networking
Host network
Bridged network
Creating a network
Running a container in a network
Creating multi-host networking
Swarm mode
Key-value store overlay networking
Exposing and mapping ports
Linking containers
Networking plugins
Docker volumes
Creating a volume
Removing a volume
Volume drivers
Summary
5. Finding Images
The Docker Hub
Docker Hub account
Organization account and teams
Collaborators
Private Repositories
Logging into Docker Hub
Searching for images
Image naming and tags
Searching through the web interface
Searching using the command line
Docker Hub and docker registry REST API
Summary
6. Creating Images
Dockerfile instructions
FROM
MAINTAINER
ADD
COPY
CMD
ENTRYPOINT
LABEL
EXPOSE
RUN
USER
VOLUME
WORKDIR
ARG
ONBUILD
STOPSIGNAL
HEALTHCHECK
SHELL
Using Dockerfiles
Summary
7. Running Containers
Runtime modes - detached and foreground
Detached
Foreground
Identifying images and containers
PID settings
UTS settings
Overriding default commands from Dockerfile
Overriding the CMD
Overriding the ENTRYPOINT
Executing arbitrary commands with exec
Monitoring containers
Viewing logs
Container events
Inspecting a container
Statistics
Container exit codes and restart policies
no
always
on-failure
unless-stopped
Updating a restart policy on a running container
Runtime constraints on resources
Memory
Processors
Updating constraints on a running container
Docker Swarm mode
The purpose
Terminology
Swarm mode commands
Summary
8. Publishing Images
Publishing images
Tagging
Untagging the image
Pushing the image
Webhooks and automated builds
Setting up the automated build
Build Triggers
Webhooks and continuous deployments
Summary
9. Using Docker in Development
Using Docker with Maven
Spotify's Maven Docker plugin
fabric8io Maven Docker plugin
Spring Boot application in Docker container
Packaging Angular.js application
Summary
Appendix A. More Resources
Official documentation
Awesome Docker
Training
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜