Description
I use docker compose with multiple services, and compose builds the needed images itself. Occasionally, compose aborts with an error because it cannot find the image it has just built.
I assume this happens when both of these conditions are true:
- the built image already existed, so its LRU is old enough, because all build steps were cached, leading to the newly built image being an existing one
- docuum crashed and (in my case) was automatically started, performing the more aggressive startup cleaning
The crash looks like this:
Nov 18 11:42:09 sonnenschein-gh-runner docker[1733577]: [2024-11-18 11:42:09 +00:00 DEBUG] Waking up…
Nov 18 11:42:09 sonnenschein-gh-runner docker[1733577]: [2024-11-18 11:42:09 +00:00 DEBUG] Updating last-used timestamp for image `sha256:a5ae6b5aac27c27b6e4b1f8e81ff0af7fa071e17f85a3e2c767129e1814426e7`…
Nov 18 11:42:09 sonnenschein-gh-runner docker[1733577]: [2024-11-18 11:42:09 +00:00 DEBUG] Going back to sleep…
Nov 18 11:43:38 sonnenschein-gh-runner systemd[846]: docuum.service: Main process exited, code=exited, status=1/FAILURE
Nov 18 11:43:38 sonnenschein-gh-runner systemd[846]: docuum.service: Failed with result 'exit-code'.
Nov 18 11:43:39 sonnenschein-gh-runner systemd[846]: docuum.service: Scheduled restart job, restart counter is at 99.
Nov 18 11:43:39 sonnenschein-gh-runner systemd[846]: Stopped Docuum (docker image vacuumer).
Nov 18 11:43:39 sonnenschein-gh-runner systemd[846]: Started Docuum (docker image vacuumer).
Nov 18 11:43:39 sonnenschein-gh-runner docker[1822919]: [2024-11-18 11:43:39 +00:00 INFO] Performing an initial vacuum on startup…
Nov 18 11:43:40 sonnenschein-gh-runner docker[1822919]: [2024-11-18 11:43:40 +00:00 DEBUG] Ignored image `sha256:a5ae6b5aac27c27b6e4b1f8e81ff0af7fa071e17f85a3e2c767129e1814426e7` due to the `--min-age` flag.
As you can see, all crash related information I have is the exit status, at least this time. Last time around, I saw "docker events terminated" which made docuum exit.
Instructions to reproduce the bug
It happens only sporadically, so that remains to be seen.
Environment information:
- 0.25.0
- Docker version 27.3.1, build ce12230
- Ubuntu 22.04.5 LTS
Additional context
I'm using rootless docker, and I'm starting docuum like this:
ExecStart=/usr/bin/docker run \
--rm \
--init \
--name docuum \
--mount type=bind,src=/run/user/%U/docker.sock,dst=/var/run/docker.sock \
--mount type=volume,source=docuum,target=/root \
stephanmisc/docuum --threshold '10 GB' --min-age '5min'
Help is very much appreciated for getting more information on this issue.
Description
I use
docker composewith multiple services, and compose builds the needed images itself. Occasionally, compose aborts with an error because it cannot find the image it has just built.I assume this happens when both of these conditions are true:
The crash looks like this:
As you can see, all crash related information I have is the exit status, at least this time. Last time around, I saw "
docker eventsterminated" which made docuum exit.Instructions to reproduce the bug
It happens only sporadically, so that remains to be seen.
Environment information:
Additional context
I'm using rootless docker, and I'm starting docuum like this:
Help is very much appreciated for getting more information on this issue.