Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes in registries do not reflect on existing images #170

Open
vamitrou opened this issue Dec 16, 2024 · 1 comment
Open

Changes in registries do not reflect on existing images #170

vamitrou opened this issue Dec 16, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@vamitrou
Copy link

vamitrou commented Dec 16, 2024

Netbox version Plugin Version Agent version Docker API Version
3.6.9 1.6.1 1.45

Actual Behavior

After changing the properties of a registry and trying to pull an already defined image it won't use the new properties (e.g. registry server address) but they have the previous configuration cached. For pulling the image correctly it has to be deleted and recreated.

Desired Behavior

When doing changes in a registry, the images already defined should make use of the new changes.

How to reproduce

  1. Create a registry with no username/password and an invalid server address URL like https://registry.example.com.
  2. Create an image using that registry and force pull. You will see the docker login required in the journal.
  3. Go back to registry and put the correct URL like https://registry.mygitlab.int, add proper username and password.
  4. Go back to the image and force pull again. You will see in the journal it tries to pull the image from the public docker registry.
@vamitrou vamitrou added the bug Something isn't working label Dec 16, 2024
@fanshan fanshan self-assigned this Dec 17, 2024
@lvenier
Copy link
Collaborator

lvenier commented Dec 17, 2024

@vamitrou Thank you for your issue. This one will not be an easy one to manage. Editing a registry will require to handle the current with those registries to be updated.
We'll discuss it to see what we can do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants