[nomad-step-4] S4-fix-5 — agents.hcl needs force_pull=false for locally-built image #978
Labels
No labels
action
backlog
blocked
bug-report
cannot-reproduce
in-progress
in-triage
needs-triage
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
rejected
reproduced
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#978
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Step 4 verification: agents alloc fails
pull access denied for disinto/agentseven though the image is built locally. Nomad defaults to pulling from registry.Fix
Add
force_pull = falsetonomad/jobs/agents.hclconfig block:One line. Same fix needed for any future jobspec using a locally-built image.
Acceptance criteria
nomad job run nomad/jobs/agents.hcluses localdisinto/agents:latestwithout pulling.Labels / meta
backlog+bug-report.Update: force_pull=false doesn't work for :latest tag
Nomad Docker driver ALWAYS pulls
:latestregardless offorce_pullsetting. From Nomad docs: "Docker images with the :latest tag will always be pulled."Revised fix: use tag
:localinstead of:latest:bin/disintobuild step:docker build -t disinto/agents:local ...nomad/jobs/agents.hcl:image = "disinto/agents:local"+force_pull = falseThe
:localtag signals "locally-built, don't pull from registry" by convention.