Hide Forgot
Document URL: https://access.redhat.com/documentation/en-us/red_hat_satellite/6.4/html-single/hammer_cli_guide/#hammer-repository-update Section Number and Name: 10.52.8. hammer repository update Describe the issue: The following options are missed in the documentation but are available in the help section: ~~~ --docker-digest DIGEST Container Image manifest digest --docker-tag TAG Container Image tag ~~~ It would be great to have them described with their purpose because this makes it look like we can update the docker repo so we can specify a specific tag to be synced but it does not work. ~~~ + hammer repository update --product=docker --organization-id=1 --name=docker --docker-tag latest --docker-digest e1ab1382777dcffe42bb08023c2fa1ef194769537ea9c0aecf4111e21cae5a43 Failed to upload tag 'latest' to repository. ~~~ Suggestions for improvement: Better description of both options Additional information: Test creation can be achieved with: # cat /tmp/docker.sh ~~~ #!/bin/bash hammer product create --name=docker-ktordeur --organization-id=1 hammer repository create --product=docker-ktordeur --organization-id=1 --name=docker --content-type=docker --url=https://registry.access.redhat.com --docker-upstream-name=rhel hammer repository update --product=docker --organization-id=1 --name=docker --docker-tag "latest" --docker-digest "e1ab1382777dcffe42bb08023c2fa1ef194769537ea9c0aecf4111e21cae5a43" hammer repository synchronize --product=docker-ktordeur --organization-id=1 --name=docker hammer repository info --product=docker-ktordeur --organization-id=1 --name=docker ~~~
Thank you for raising this bug.
~~~ --docker-digest DIGEST Container Image manifest digest --docker-tag TAG Container Image tag ~~~ These attributes are relevant only if some one wants to specify a custom tag for a manifest referred by its digest in the repository (nothing to do with syncing specific tags). For that to happen the manifest with that digest should already be present in the repository. More details can be found in https://projects.theforeman.org/issues/22301
These changes are now live on the Customer Portal https://access.redhat.com/documentation/en-us/red_hat_satellite/6.4/html/hammer_cli_guide/reference#hammer-repository-update