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

