Skip to content

Conversation

@jmgilman
Copy link
Collaborator

@jmgilman jmgilman commented Jan 4, 2026

Summary

  • handle missing Docker container IDs case-insensitively during removal
  • declare Docker cgroup/namespace flags for the systemd image and document the labels

Testing

  • hadolint images/base/Dockerfile

Current behavior:
Errors for non-running instances are generic and usage text prints after each error.

New behavior:
Run now surfaces container status with a logs hint and Cobra no longer prints usage on errors.
Current behavior:
Systemd images running on Docker start without runtime flags, causing containers to exit early.

New behavior:
Systemd images set docker runtime flags so Headjack runs them with the required privileges.
Current behavior:
Container removal fails when Docker reports missing container IDs using capitalized messages (for example, "No such object").

New behavior:
Missing-container errors are detected case-insensitively so remove operations can proceed.
Current behavior:
Systemd images on Docker start without cgroup namespace and cgroup mount flags, causing systemd to exit immediately.

New behavior:
Systemd images declare Docker runtime flags for host cgroup namespace and cgroup mount, and docs reflect the label.
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 4, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
headjack 3fc3f95 Commit Preview URL

Branch Preview URL
Jan 04 2026, 03:44 AM

@jmgilman jmgilman merged commit 69ef1b3 into master Jan 4, 2026
12 checks passed
@jmgilman jmgilman deleted the fix/systemd-docker-cgroups branch January 4, 2026 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants