|
Dear all, I am missing a simple documentation on how to properly use "image names" when building images. (To be clear, Imagine running something like the following: pack build my-app ...This results in a local image that is named Running In contrast, building an image with QuestionWhat would be the proper way to have (I know I can add additional tags, but I want to avoid having multiple tags for the same image). Can someone cleanup the confusion, please? Kind Regards, |
Replies: 1 comment 2 replies
|
Your observation is correct: this is an image-reference parsing issue, not a missing The current 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-appWithout Creating the exact bare name References: pack v0.40.8 dependency, tag parsing in pack, and pack export behavior. |
Your observation is correct: this is an image-reference parsing issue, not a missing
packoption.The current
packrelease, v0.40.8, depends ongo-containerregistryv0.21.5 and parses tag references through that library. Its parser does not recognize barelocalhostas a registry component, so:is normalized as a Docker Hub repository path.
The reliable single-tag workaround is to make the registry component explicit with a port:
Without
--publish,packstill 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…