Docker: Allow to issue pull on tag entry (i.e. to fetch updates for the tag) - #9619
Open
matthiasblaesing wants to merge 1 commit into
Open
matthiasblaesing wants to merge 1 commit into
matthiasblaesing wants to merge 1 commit into
Conversation
mbien
approved these changes
Sep 16, 2026
mbien
left a comment
Member
There was a problem hiding this comment.
tested with userpace podman (which should be API compatible with Docker) connected via unix socket and it worked.
note: I don't have a local image registry set up, so using the action on a locally created image will fail with "Internal Server Error" in output + info log line in NB's log file:
INFO [org.netbeans.modules.docker.ui.pull.PullImageAction]
org.netbeans.modules.docker.DockerRemoteException: 500: Internal Server Error
at org.netbeans.modules.docker.api.DockerAction.codeToException(DockerAction.java:1338)
at org.netbeans.modules.docker.api.DockerAction.pull(DockerAction.java:571)
[catch] at org.netbeans.modules.docker.ui.pull.PullImageAction$Pull.run(PullImageAction.java:187)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1370)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:287)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1981)
INFO [org.netbeans.modules.docker.api.DockerAction]: Unknown event {"Type":"image","Action":"pull-error","Actor":{"Attributes":{"image":"","name":"localhost\/custom:latest","error":"unable to copy from source docker:\/\/localhost\/custom:latest: initializing source docker:\/\/localhost\/custom:latest: fetching manifest latest in localhost\/custom: pinging container registry localhost: Get \"https:\/\/localhost\/v2\/\": dial tcp [::1]:443: connect: connection refused","podId":""},"ID":""},"scope":"local","timeNano":1789577079075095615,"time":1789577079,"status":"pull-error"}
This can probably be improved by updating the exception handler. Maybe it could print something more useful instead of "Internal Server Error", given that the exception has a pretty good error message as json.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
NetBeans lists the available images/tags for a system. There were various actions available for the images/tags, but there was no option to fetch updates for the tag. This PR adds a "Pull" option to the image menu: