You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I set the Image in the .container unit to reference the .image unit (Image=test-pull-missing.image), it always tries to pull the image - even if it’s already present locally.
However, if I change the line to use the full image reference directly like this "Image=registry/test-pull-missing:1.0" then everything works as expected, and the image is not pulled again if it already exists.
In my case, I use custom authentication for my private registry, so the .image unit is required.
[Unit]
Description=Test Pull missing container
[Container]
ContainerName=test-pull-missing
# This image specification works fine with the Pull policy:
# Image=registry/test-pull-missing:1.0
# This one does not work:
Image=test-pull-missing.image
Pull=missing
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
When I set the Image in the .container unit to reference the .image unit (Image=test-pull-missing.image), it always tries to pull the image - even if it’s already present locally.
However, if I change the line to use the full image reference directly like this "Image=registry/test-pull-missing:1.0" then everything works as expected, and the image is not pulled again if it already exists.
In my case, I use custom authentication for my private registry, so the .image unit is required.
How to repeat
test-pull-missing.image
test-pull-missing.container
image already present in the system for user root
Is this a known issue or expected behavior when using .image units with authentication and Pull=missing?
Beta Was this translation helpful? Give feedback.
All reactions