liveBook · Manning

Container runtime

As explained in Rust Servers, Services, and Apps

A container runtime is software that creates and runs application containers from container images.

A container runtime creates and runs application containers from container images. In Docker deployment, a Dockerfile defines infrastructure, dependencies, environment variables, volumes, and exposed ports; building it produces an image that can instantiate multiple containers on a host with a container runtime. section 12.1.1 section 12.1.2

A practical deployment flow uses the runtime to:

  • Build a Rust server into a Docker image from a Dockerfile. section 12.1.1
  • Instantiate and test application containers from that image. section 12.1.2
  • Configure linked web-service and Postgres containers with Docker Compose, runtime environment variables, and dependencies. section 12.1.1
  • Start and stop the containers on a deployment host. section 12.1.1

Rust web service and Postgres

A Rust web service is packaged as a Docker image, tested through instantiated containers, and handed to operations for deployment alongside a Postgres container. Reusing the image across Docker hosts reduces infrastructure differences and deployment friction. section 12.1.1 section 12.1.2

Figure 12.2 Docker overview

Use the Docker overview to relate Dockerfiles, images, containers, and host deployment. section 12.1.2

How Rust Servers, Services, and Apps covers it

How deep it goes
Explains image-to-container instantiation and deployment configuration, but stops short of runtime internals.
Examples
Uses a Rust server image, Docker containers, and a Postgres container in a deployment configuration.
What it assumes
Assumes a Docker development environment and skilled configuration, while teaching Dockerfile-based packaging and container deployment.
What you can do after
Operate/configure Docker containers by building images and starting or stopping service and database containers.
How it connects
Connects Docker images, Dockerfiles, Docker Compose, volumes, networks, environment variables, and production deployment.

Also explained in

Compare how 2 books explain container runtime →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Rust Servers, Services, and Apps. The section links point to the parts of the book it draws on.