Skip to main content
  1. Posts/

Second Edition of Practical Docker With Python is now available

··414 words·2 mins·
General Books Docker

About 3 years ago, I wrote my first book - “Practical Docker with Python”. The book focused on the fundamentals of containerization and getting started with Docker. A few months back, I received an email from my editor at Apress asking me if I’d be interested in doing a second edition of the book.

Looking back at the book, it had received good feedback, has been cited in different publications and there was some feedback I had received that I always wished I could update the book with, so this was the best chance. After many months of work, the second edition of Practical Docker With Python is available on SpringerLink, Amazon (US, India), O’Reilly Learning (formerly Safari Books Online) and probably every other online bookstore.

The second edition, much like the first edition, targets people who are new to containerization and want a guided approach to containerizing their application. I start with setting up a Python telegram bot, building and running it as a program, and then continue containerizing the same bot, starting with steps to build the Dockerfile, adding volumes for persisting the data, setting up Docker networks for container networking, and finally multi-container orchestration with Docker Compose.

Holding my copy of my book - Practical Docker with Python

What’s new in this edition is a blurb on getting started with Windows Subsystem for Linux 2(WSL2), an entire chapter dedicated to Continuous Integration, and how a container image becomes from being a local thing to being deployed on an orchestrator like Kubernetes. Writing about Kubernetes was the hardest thing - entire books have been written on it and I certainly didn’t want to focus on it, but I hope it gives a taste of what you can do with k8s.

Among the things that were left out include “docker compose”, and multi-arch builds using buildx. The next gen docker compose (note: NOT “docker-compose”!) was just too new to be included in the book. But there is a reference to compose spec, and “docker compose” is supposed to be a drop-in replacement, so hopefully, you can swap out the commands. Not including docker compose meant I couldn’t include deploying to ECS/other container orchestrators using docker compose.

I hope the second edition is a value add and you like it as much as I enjoyed writing it. Feedback, of course, is always welcome. My Twitter DMs are always open, or you can reach out to me on the channels mentioned in the contact page.

Sathyajith Bhat
Author
Sathyajith Bhat
Author, AWS Container Hero and DevOps Specialist.

Related

So I wrote a book: presenting Practical Docker With Python
··223 words·2 mins
General Books Docker
So yeah that actually happened! I’ve always wanted to publish a book and thanks to Apress publishing - that is a reality now. The book is titled “Practical Docker With Python: Build, Release and Distribute your Python App with Docker” and is targeted at people who are new to Docker and want to containerize their application (with an example Python chat bot). The book starts with a brief introduction to containers and Docker, guides you on how to get started with Docker before diving into deeper topics such as Docker Networks, Volumes and Compose.
Setting up a secure Docker image scanning solution with Anchore and Drone CI
··616 words·3 mins
DevOps Anchore Container Security Containers Docker
A while back I had done a round up of a few container scanning solutions and had mentioned I wanted to take another look at Anchore. The past few days, I’ve been playing a bit with Anchore - this time, integrating it with Drone CI. Drone is a “Container-Native, Continuous Delivery Platform” built using Go. It makes use of a YAML file, .drone.yml to define and execute the pipeline. End Goal # For this project, we will be integrating Drone and Anchore.
On Securing Containers and Open Source tools for scanning vulnerabilities in Docker images
··46 words·1 min
DevOps Containers Docker Security
I recently published couple of articles elsewhere: How to Increase Container Security and Ward Off Threats - Adobe Tech Blog 5 OpenSource tools for container security - OpenSource.com Scanning Docker Images for Vulnerabilities with Aqua Microscanner - previously, on my blog Do give them a read.