精通Docker:快速轻松运行应用

需积分: 10 2 下载量 44 浏览量 更新于2024-07-21 收藏 2.92MB PDF 举报
"Learning Docker" 本书《Learning Docker》旨在帮助读者充分利用Docker技术,以便高效、轻松地运行应用程序。作者包括Pethuru Raj、Jeeva S. Chelladhurai和Vinod Singh,由Packt Publishing出版。书中详细介绍了Docker的基础知识、核心概念以及实践应用,旨在让读者掌握Docker的优化使用方法。 Docker是一种开源的应用容器引擎,它允许开发者将他们的应用及其依赖包打包到一个可移植的容器中,然后在任何平台上运行这个容器,实现软件的快速部署和发布。这一技术的关键优势在于隔离性和轻量级特性,它使得应用程序可以在几乎任何环境中无缝运行,而无需考虑底层系统的差异。 书中可能涵盖以下知识点: 1. **Docker基础**:介绍Docker的基本概念,如镜像(Images)、容器(Containers)、仓库(Registry)和Dockerfile,这些都是构建和分发Docker应用的基础。 2. **Docker安装与配置**:讲解如何在不同的操作系统(如Linux、Windows、macOS)上安装和设置Docker环境,以及如何进行基本的Docker命令操作。 3. **创建与管理Docker镜像**:如何使用Dockerfile创建自定义镜像,以及如何通过`docker build`命令构建镜像。此外,还可能涉及镜像的拉取、推送和管理。 4. **运行和管理Docker容器**:探讨如何启动、停止、查看和管理容器,以及容器间的网络通信。 5. **数据卷(Volumes)和持久化存储**:如何在容器中持久化数据,避免数据随着容器销毁而丢失,以及如何使用数据卷挂载。 6. **Docker Compose**:介绍多容器应用的编排工具Docker Compose,用于定义和运行多容器的Docker应用。 7. **Docker Swarm**:学习Docker的集群管理工具Swarm,如何创建和管理Docker集群,实现服务发现和负载均衡。 8. **安全性和最佳实践**:讨论Docker的安全问题,如容器隔离、权限控制,以及在生产环境中使用Docker的最佳实践。 9. **Docker生态系统**:了解与Docker相关的其他工具和服务,如Kubernetes(K8s)、Jenkins和持续集成/持续部署(CI/CD)流程。 10. **案例研究**:通过实际项目案例,展示Docker在开发、测试和生产环境中的应用,以加深理解。 通过阅读《Learning Docker》,读者不仅可以掌握Docker的核心技术,还能了解到如何在实际工作中有效利用Docker提升软件部署和管理的效率。书中的信息虽然可能经过了严格校对,但作者和出版社不承担因使用本书内容而引发的任何直接或间接损害责任。同时,书中提及的公司和产品商标信息可能存在变化,建议读者自行验证。
2016-04-11 上传
Key Features Set up, configure, and monitor a virtual network of containers using a bridge network and virtual switches Master the skill of networking Docker Containers using frameworks such as Kubernetes, Docker Swarm, and Mesosphere Acquire hands-on experience through practical examples of Docker networking spanning multiple containers, over multiple hosts, clubbed with various frameworks Book Description Docker is a Linux container implementation that enables the creation of light weight portable development and production environments. These environments can be updated incrementally. Docker achieves this by leveraging containment principles like cgroups and Linux namespaces along with Overlay filesystem based portable images. Docker provides the networking primitives that allow administrators to specify how different containers network with each application and connect each of its components, then distribute them across a large number of servers and ensure coordination between them irrespective of the host or VM they are running in. This book will show you how to create, deploy, and manage a virtual network for connecting containers spanning single or multiple hosts. What you will learn Get to know the basics of networking and see how Docker networking works Expose the strengths and weaknesses of the current Docker network implementation and third party landscape Understand Docker networking spanning multiple containers over multiple hosts through practical examples Observe the pitfalls of Docker networking and how to overcome them Learn how Docker networking works for Docker Swarm and Kubernetes Configure Networking using Docker's container network model (CNM) Explore OpenvSwitch to connect contain About the Author Rajdeep Dua has over 16 years of experience in distributed systems. He has worked in R&D and Developer Relation roles at Microsoft, Google, VMware, and Salesforce.com. He has exposure to multiple cloud platforms like Google App Engine, Heroku, Forc
2017-06-11 上传
Learning Docker - Second Edition by Jeeva S. Chelladhurai English | 31 May 2017 | ASIN: B01MSJB4MD | 300 Pages | AZW3 | 3.66 MB Docker lets you create, deploy, and manage your applications anywhere at anytime – flexibility is key so you can deploy stable, secure, and scalable app containers across a wide variety of platforms and delve into microservices architecture About This Book This up-to-date edition shows how to leverage Docker's features to deploy your existing applications Learn how to package your applications with Docker and build, ship, and scale your containers Explore real-world examples of securing and managing Docker containers Who This Book Is For This book is ideal for developers, operations managers, and IT professionals who would like to learn about Docker and use it to build and deploy container-based apps. No prior knowledge of Docker is expected. What You Will Learn Develop containerized applications using the Docker version 17.03 Build Docker images from containers and launch them Develop Docker images and containers leveraging Dockerfiles Use Docker volumes to share data Get to know how data is shared between containers Understand Docker Jenkins integration Gain the power of container orchestration Familiarize yourself with the frequently used commands such as docker exec, docker ps, docker top, and docker stats In Detail Docker is an open source containerization engine that offers a simple and faster way for developing and running software. Docker containers wrap software in a complete filesystem that contains everything it needs to run, enabling any application to be run anywhere – this flexibily and portabily means that you can run apps in the cloud, on virtual machines, or on dedicated servers. This book will give you a tour of the new features of Docker and help you get started with Docker by building and deploying a simple application. It will walk you through the commands required to manage Docker images and containers. You'l
2018-07-29 上传
Docker lets you create, deploy, and manage your applications anywhere at anytime – flexibility is key so you can deploy stable, secure, and scalable app containers across a wide variety of platforms and delve into microservices architecture About This BookThis up-to-date edition shows how to leverage Docker’s features to deploy your existing applicationsLearn how to package your applications with Docker and build, ship, and scale your containersExplore real-world examples of securing and managing Docker containersWho This Book Is For This book is ideal for developers, operations managers, and IT professionals who would like to learn about Docker and use it to build and deploy container-based apps. No prior knowledge of Docker is expected. What You Will LearnDevelop containerized applications using the Docker version 17.03Build Docker images from containers and launch themDevelop Docker images and containers leveraging DockerfilesUse Docker volumes to share dataGet to know how data is shared between containersUnderstand Docker Jenkins integrationGain the power of container orchestrationFamiliarize yourself with the frequently used commands such as docker exec, docker ps, docker top, and docker statsIn Detail Docker is an open source containerization engine that offers a simple and faster way for developing and running software. Docker containers wrap software in a complete filesystem that contains everything it needs to run, enabling any application to be run anywhere – this flexibily and portabily means that you can run apps in the cloud, on virtual machines, or on dedicated servers. This book will give you a tour of the new features of Docker and help you get started with Docker by building and deploying a simple application. It will walk you through the commands required to manage Docker images and containers. You’ll be shown how to download new images, run containers, list the containers running on the Docker host, and kill them. You’ll learn how to leverage Docker’s volumes feature to share data between the Docker host and its containers – this data management feature is also useful for persistent data. This book also covers how to orchestrate containers using Docker compose, debug containers, and secure containers using the AppArmor and SELinux security modules. Style and approach This step-by-step guide will walk you through the features and use of Docker, from Docker software installation to the impenetrable security of containers.