𝔖 Scriptorium
✦   LIBER   ✦

📁

Practical Docker with Python: build, release and distribute your Python app with Docker

✍ Scribed by Bhat, Sathyajith


Publisher
Apress
Year
2018
Tongue
English
Leaves
195
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


Learn the key differences between containers and virtual machines. Adopting a project based approach, this book introduces you to a simple Python application to be developed and containerized with Docker.
After an introduction to Containers and Docker you'll be guided through Docker installation and configuration. You'll also learn basic functions and commands used in Docker by running a simple container using Docker commands.
The book then moves on to developing a Python based Messaging Bot using required libraries and virtual environment where you'll add Docker Volumes to your project, ensuring your container data is safe. You'll create a database container and link your project to it and finally, bring up the Bot-associated database all at once with Docker Compose.
What You'll Learn
Build, run, and distribute Docker containers


Develop a Python App and containerize it
Use Dockerfile to run the Python App
Define and run multi-container applications with Docker Compose
Work with persisting data generated by and used by Docker containers
Who This Book Is For
Intermediate developers/DevOps practitioners who are looking to improve their build and release workflow by containerizing applications

✦ Table of Contents


Table of Contents......Page 5
About the Author......Page 8
About the Technical Reviewer......Page 9
Acknowledgments......Page 10
Introduction......Page 11
Docker the Company......Page 12
Understanding Problems that Docker Solves......Page 13
2005: OpenVZ......Page 15
Knowing the Difference Between Containers and Virtual Machines......Page 16
Summary......Page 19
Installing Docker......Page 20
Installing Docker on Windows......Page 21
Installing on MacOS......Page 23
Installing on Linux......Page 24
Additional Steps......Page 25
Layers......Page 27
Docker Container......Page 28
Docker Registry......Page 29
Dockerfile......Page 30
Docker CLI......Page 31
Docker API......Page 33
Docker Machine......Page 34
Hands-On Docker......Page 35
Working with Docker Images......Page 37
Working with a Real-World Docker Images......Page 41
Summary......Page 49
About the Project......Page 50
Setting Up Telegram Messenger......Page 51
BotFather: Telegram’s Bot Creation Interface......Page 53
Creating the Bot with BotFather......Page 54
Installing Dependencies of Newsbot......Page 57
Running Newsbot......Page 58
Sending Messages to Newsbot......Page 59
Summary......Page 62
Dockerfile......Page 63
Build Context......Page 64
Dockerignore......Page 65
Building Using Docker Build......Page 66
Dockerfile Instructions......Page 69
FROM......Page 70
WORKDIR......Page 71
ADD and COPY......Page 75
RUN......Page 77
CMD and ENTRYPOINT......Page 79
Gotchas About Shell and Exec Form......Page 82
ENV......Page 83
EXPOSE......Page 85
LABEL......Page 88
Guidelines and Recommendations for Writing Dockerfiles......Page 89
Multi-Stage Builds......Page 90
Dockerfile Exercises......Page 91
Summary......Page 99
Data Persistence......Page 100
Example of Data Loss Within Docker Container......Page 101
tmpfs Mounts......Page 103
Bind Mounts......Page 104
Volumes......Page 108
Create Volume......Page 109
Inspect......Page 110
Remove Volumes......Page 111
Using Volumes When Starting a Container......Page 112
VOLUME Instruction in Dockerfile......Page 115
Docker Volume Exercises......Page 116
Summary......Page 127
Why Do We Need Container Networking?......Page 128
Bridge Network......Page 129
Host Network......Page 130
None Networking......Page 131
Working with Docker Networks......Page 132
Bridge Networks......Page 136
Creating Named Bridge Networks......Page 141
Connecting Containers to Named Bridge Networks......Page 146
Host Networks......Page 150
Docker Networking Exercises......Page 151
Summary......Page 159
Overview of Docker Compose......Page 160
Installing Docker Compose......Page 162
Compose File Versioning......Page 163
Version 3......Page 164
build......Page 168
environment/env_file......Page 169
depends_on......Page 170
ports......Page 171
volumes......Page 172
Restart......Page 174
exec......Page 175
Docker Volume Exercises......Page 176
Summary......Page 191
Index......Page 192


📜 SIMILAR VOLUMES


Practical Docker with Python: Build, Rel
✍ Sathyajith Bhat 📂 Library 📅 2021 🏛 Apress 🌐 English

<div>Learn the fundamentals of containerization and get acquainted with Docker. This second edition builds upon the foundation of the first book by revising all the chapters, updating the commands, code, and examples to meet the changes in Docker. It also introduces a new chapter on setting up your

Practical Docker with Python: Build, Rel
✍ Sathyajith Bhat 📂 Library 📅 2021 🏛 Apress 🌐 English

<div>Learn the fundamentals of containerization and get acquainted with Docker. This second edition builds upon the foundation of the first book by revising all the chapters, updating the commands, code, and examples to meet the changes in Docker. It also introduces a new chapter on setting up your

Practical Docker with Python: Build, Rel
✍ Sathyajith Bhat 📂 Library 📅 2018 🏛 Apress 🌐 English

<div><p>Learn the key differences between containers and virtual machines. Adopting a project based approach, this book introduces you to a simple Python application to be developed and containerized with Docker.</p><p>After an introduction to Containers and Docker you'll be guided through Docker in

Practical Docker with Python: build, rel
✍ Bhat, Sathyajith 📂 Library 📅 2018 🏛 Apress 🌐 English

Introduction to containerization -- Docker 101 -- Building the Python app -- Understanding the Dockerfile -- Understanding Docker volumes -- Understanding Docker networks -- Understanding Docker compose.;Learn the key differences between containers and virtual machines. Adopting a project based app

Practical Docker with Python: Build, Rel
✍ Sathyajith Bhat 📂 Library 📅 2021 🏛 Apress 🌐 English

<span>Learn the fundamentals of containerization and get acquainted with Docker. This second edition builds upon the foundation of the first book by revising all the chapters, updating the commands, code, and examples to meet the changes in Docker. It also introduces a new chapter on setting up your

Practical Docker with Python
✍ Sathyajith Bhat 📂 Library 📅 2018 🏛 Apress 🌐 English

<p>Learn the key differences between containers and virtual machines. Adopting a project based approach, this book introduces you to a simple Python application to be developed and containerized with Docker.<br>After an introduction to Containers and Docker you'll be guided through Docker installati