liveBook · Manning

Portability

As explained in Learn Docker in a Month of Lunches, Second Edition

Portability is the ability of software to run consistently across different deployment environments.

Portability is the ability of software to run consistently across deployment environments. Packaging an application and its dependencies in Docker reduces environment drift, so development, testing, and production behave more alike. section 10.0

Build portability into delivery workflows by:

  • Compiling code and running unit tests inside a Dockerfile, avoiding separate build dependencies. section 16.5
  • Modeling the application in Docker Compose so developers and pipelines can create the same smoke-test environment. section 16.5
  • Isolating build stages in scripts that translate pipeline values into Docker and Compose environment variables. section 16.5
  • Keeping scripts usable by both developers and operations, rather than depending heavily on proprietary build-service features. section 16.5

A portable CI/CD path

A pipeline can compile and test an application in a multi-stage Docker build, launch a local Compose deployment for smoke testing, and publish the tested image for production. The same familiar Docker commands can run in GitHub Actions or another CI/CD service, limiting provider-specific rework. section 16.0 section 16.5

How Learn Docker in a Month of Lunches, Second Edition covers it

How deep it goes
Explains container packaging, environment-specific behavior, and portable pipeline structure, but stops short of detailed platform implementation.
Examples
Uses dependency-packaged containers, Compose smoke tests, Dockerfile unit tests, coordinating scripts, and multi-platform GitHub Actions agents.
What it assumes
Assumes basic Docker Compose, YAML, Dockerfile, and command-line familiarity while emphasizing reusable build practices.
What you can do after
Apply it via Docker and Compose to reproduce builds, tests, and smoke tests across developer and CI/CD environments.
How it connects
Connects portability to Docker, Docker Compose, Dockerfiles, CI/CD pipelines, multi-stage builds, and GitHub Actions.

Also explained in

Compare how 5 books explain portability →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn Docker in a Month of Lunches, Second Edition. The section links point to the parts of the book it draws on.