Vai al contenuto principale della pagina
Autore: |
Bhat Sathyajith
![]() |
Titolo: |
Practical Docker with Python : Build, Release, and Distribute Your Python App with Docker
![]() |
Pubblicazione: | Berkeley, CA : , : Apress L. P., , 2021 |
©2022 | |
Edizione: | 2nd ed. |
Descrizione fisica: | 1 online resource (250 pages) |
Soggetto genere / forma: | Electronic books. |
Nota di contenuto: | Intro -- Table of Contents -- About the Author -- About the Technical Reviewer -- Acknowledgments -- Introduction -- Chapter 1: Introduction to Containerization -- What Is Docker? -- Understanding Problems that Docker Solves -- Containerization Through the Years -- 1979: chroot -- 2000: FreeBSD Jails -- 2005: OpenVZ -- 2006: cgroups -- 2008: LXC -- Containers and Virtual Machines -- Container Runtimes -- OCI and CRI -- Docker and Kubernetes -- Summary -- Chapter 2: Docker 101 -- Installing Docker -- Installing Docker on Windows -- Installing Docker on Windows Using WSL2 Backend -- About WSL -- Requirements for Installing and Enabling WSL2 -- Installing on macOS -- Installing on Linux -- Additional Steps -- Understanding Jargon Around Docker -- Layers -- Docker Image -- Docker Tags -- Docker Container -- Bind Mounts and Volumes -- Docker Repository -- Docker Registry -- Dockerfile -- Docker Engine -- Docker Daemon -- Docker CLI -- Docker API -- Docker Compose -- Docker Machine -- Hands-on Docker -- Working with Docker Images -- Working with a Real-World Docker Image -- Summary -- Chapter 3: Building the Python App -- About the Project -- Setting Up Telegram Messenger -- BotFather: Telegram's Bot Creation Interface -- Creating the Bot with BotFather -- Newsbot: The Python App -- Getting Started with Newsbot -- Running Newsbot -- Sending Messages to Newsbot -- Summary -- Chapter 4: Understanding the Dockerfile -- Dockerfile Primer -- Build Context -- Dockerignore -- BuildKit -- Building Using Docker Build -- Tags -- Dockerfile Instructions -- FROM -- WORKDIR -- ADD and COPY -- RUN -- Layer Caching -- CMD and ENTRYPOINT -- ENV -- VOLUME -- EXPOSE -- LABEL -- Guidelines and Recommendations for Writing Dockerfiles -- Using Multi-Stage Builds -- Exercises -- Summary -- Chapter 5: Understanding Docker Volumes -- Data Persistence. |
Example of Data Loss Within a Docker Container -- tmpfs Mounts -- Bind Mounts -- Docker Volumes -- Docker Volume Subcommands -- Volume Create -- Volume Inspect -- List Volumes -- Prune Volumes -- Remove Volumes -- Using Volumes When Starting a Container -- The VOLUME Instruction in Dockerfiles -- Exercises -- Summary -- Chapter 6: Understanding Docker Networks -- Why Do We Need Container Networking? -- Default Docker Network Drivers -- Bridge Networks -- Host Networks -- Overlay Networks -- Macvlan Networks -- None Networking -- Working with Docker Networks -- Bridge Networks -- Creating Named Bridge Networks -- Connecting Containers to Named Bridge Networks -- Host Networks -- Exercises -- Summary -- Chapter 7: Understanding Docker Compose -- Overview of Docker Compose -- Installing Docker Compose -- Docker Compose Basics -- Docker Compose Version Overview -- Compose File Versioning and the Compose Spec -- Version 1 -- Version 2 -- Version 3 -- Compose Specification -- Docker Compose File Reference -- Services Key -- Build Key -- Context Key -- Image Key -- environment/env_file Key -- depends_on Key -- Image Key -- ports Key -- Volumes Key -- Restart Key -- Docker Compose CLI Reference -- The build Subcommand -- The down Subcommand -- The exec Subcommand -- The logs Subcommand -- The stop subcommand -- Exercises -- Summary -- Chapter 8: Preparing for Production Deployments -- Continuous Integration (CI) -- GitHub Actions -- Container Orchestration -- The Need for Orchestrators -- How Do Orchestrators Work? -- Popular Orchestrators -- Kubernetes -- Kubernetes Control Plane -- Kubernetes Worker Plane -- A Look at kind -- Creating Kubernetes Clusters Using kind -- Running a Sample Service in Kubernetes -- Pods and Deployments -- Exercises -- Summary -- Index. | |
Titolo autorizzato: | Practical Docker with Python ![]() |
ISBN: | 9781484278154 |
9781484278147 | |
Formato: | Materiale a stampa ![]() |
Livello bibliografico | Monografia |
Lingua di pubblicazione: | Inglese |
Record Nr.: | 9910510571303321 |
Lo trovi qui: | Univ. Federico II |
Opac: | Controlla la disponibilità qui |