liveBook · Manning

Process manager

As explained in Road to Kubernetes

A process manager is software that controls the lifecycle and execution state of long-running processes.

A process manager controls long-running applications by keeping them running in the background and providing commands to inspect, stop, log, or enter them. Supervisor manages Python and Node.js applications, while Docker provides similar lifecycle controls for containers. section 7.1.4 section 4.3

A practical process-management workflow includes:

  • Start a background process, such as `docker run -d nginx`. section 7.1.4
  • List running processes with `docker ps` and identify them by container ID or assigned name. section 7.1.4
  • Stop a process, inspect its logs, or open a shell with `docker stop`, `docker logs`, and `docker exec`. section 7.1.4

Managing an NGINX container

Run `docker run -d --restart always --name my-nginx -p 80:80 nginx`. Docker starts NGINX in the background, restarts it automatically, gives it a stable name, and publishes its port. Use `docker ps`, `docker logs my-nginx`, or `docker stop my-nginx` to operate it. section 7.1.4

How Road to Kubernetes covers it

How deep it goes
Demonstrates detached execution, identification, stopping, logging, shell access, and automatic restart, without developing process-manager internals.
Examples
Uses Python and Node.js applications under Supervisor and an NGINX container controlled through Docker commands.
What it assumes
Assumes familiarity with deployed applications and containers while demonstrating the required Docker lifecycle commands directly.
What you can do after
Operate/configure Docker containers by starting, listing, logging, entering, stopping, naming, and automatically restarting them.
How it connects
Connects process management with Docker, containers, Supervisor, NGINX, and deployment automation.

Also explained in

Compare how 2 books explain process manager →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Road to Kubernetes. The section links point to the parts of the book it draws on.