== docker 29.1.2
== 1. one process, two PIDs
host PID:      33785
container PID 1 cmdline: python -c import time; time.sleep(600) 
cgroup: 0::/
== 2. docker stop
script, no exec                    PID1=[sh /w/start.sh ] stop=10.2s exit=137
sh -c (shell form)                 PID1=[sh -c python /w/app.py ] stop=10.2s exit=137
sh -c with two commands            PID1=[sh -c echo hi; python /w/app.py ] stop=10.2s exit=137
exec form, no handler              PID1=[python /w/app.py ] stop=10.2s exit=137
exec form + handler                PID1=[python /w/app.py ] stop=0.1s exit=0
--init, no handler                 PID1=[/sbin/docker-init -- python /w/app.py ] stop=0.1s exit=143
== 3. build cache
   #4 [1/4] FROM docker.io/library/python:3.13-slim@sha256:70729b46c69b4f1e97c4822c1af3df53a1476cf5ddc6c087c0c10bc3a5678c2f
   #6 [2/4] WORKDIR /app
   #6 CACHED
   #7 [3/4] COPY . .
   #7 CACHED
   #8 [4/4] RUN pip install --no-cache-dir -r requirements.txt
   #8 CACHED
cache-bad rebuild after one-line change: 0.2s
   #5 [1/5] FROM docker.io/library/python:3.13-slim@sha256:70729b46c69b4f1e97c4822c1af3df53a1476cf5ddc6c087c0c10bc3a5678c2f
   #6 [4/5] RUN pip install --no-cache-dir -r requirements.txt
   #6 CACHED
   #7 [3/5] COPY requirements.txt .
   #7 CACHED
   #8 [2/5] WORKDIR /app
   #8 CACHED
   #9 [5/5] COPY . .
   #9 CACHED
cache-good rebuild after one-line change: 0.2s
== 4. memory limit
exit=137 oom=true
last log lines:
   100 MB
   110 MB
   120 MB

== 3. build cache (re-measured with cache.sh: unique one-line change)
   #1 DONE 0.0s
   #2 DONE 0.0s
   #3 DONE 0.0s
   #4 [1/4] FROM docker.io/library/python:3.13-slim@sha256:70729b46c69b4f1e97c4822c1af3df53a1476cf5ddc6c087c0c10bc3a5678c2f
   #4 DONE 0.0s
   #5 DONE 0.0s
   #6 [2/4] WORKDIR /app
   #6 CACHED
   #7 [3/4] COPY . .
   #7 DONE 0.1s
   #8 [4/4] RUN pip install --no-cache-dir -r requirements.txt
   #8 DONE 100.4s
   #9 DONE 3.3s
cache-bad rebuild after one-line change: 104.9s
   #1 DONE 0.0s
   #2 DONE 0.0s
   #3 DONE 0.0s
   #4 DONE 0.0s
   #5 [1/5] FROM docker.io/library/python:3.13-slim@sha256:70729b46c69b4f1e97c4822c1af3df53a1476cf5ddc6c087c0c10bc3a5678c2f
   #5 DONE 0.0s
   #6 [2/5] WORKDIR /app
   #6 CACHED
   #7 [3/5] COPY requirements.txt .
   #7 CACHED
   #8 [4/5] RUN pip install --no-cache-dir -r requirements.txt
   #8 CACHED
   #9 [5/5] COPY . .
   #9 DONE 0.0s
   #10 DONE 0.2s
cache-good rebuild after one-line change: 0.6s
