Debugging the issue from the last assignment

Changes to the examples

The initial Dockerfile

FROM debian:buster-slim

RUN apt-get update
RUN apt-get install -y nginx

CMD nginx -g 'daemon off;'

Commands

docker image build -t jfahrer/nginx:latest . && docker container run --name c1 --rm jfahrer/nginx:latest
docker container exec -it c1 bash
apt-get update && apt-get install procps
ps -ef

The end of containers

Becoming PID1