Skip to content
Discussion options

You must be logged in to vote

Your observation is correct: this is an image-reference parsing issue, not a missing pack option.

The current pack release, v0.40.8, depends on go-containerregistry v0.21.5 and parses tag references through that library. Its parser does not recognize bare localhost as a registry component, so:

localhost/whatever/my-app

is normalized as a Docker Hub repository path.

The reliable single-tag workaround is to make the registry component explicit with a port:

pack build localhost:5000/whatever/my-app

Without --publish, pack still saves the image only to the local daemon; it does not push it to a registry, so no local registry needs to be running.

Creating the exact bare name localhost/whateve…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kastl-ars
Comment options

@kastl-ars
Comment options

Answer selected by kastl-ars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants