Devops
The Book of Knowledge
DevOps.md
DevSecOps Tips and Tricks
Artifactory & Docker
$ docker login dhlecsam-docker-dev-fd.artifactory-us.dhl.com -u USERNAME
$ docker tag NAME:VERSION dhlecsam-docker-dev-fd.artifactory-us.dhl.com/devops/NAME:VERSION
$ docker push dhlecsam-docker-dev-fd.artifactory-us.dhl.com/devops/NAME:VERSION
Removing Signatures
If you get the “Error: Copying this image would require changing layer representation, which we cannot do: Would invalidate signatures” error message, there are two solutions, according to this RH Knowledgebase Article.
-
Using
skopeo copyorskopeo sync. This is also more efficient, since it doesn’t uncompress or unpack the artifact.skopeo sync --src docker --dest docker SRC_REPO/NAME:VERSION DEST_REPO/NAME:VERSION. -
Use –remove-signatures:
podman push --remove-signatures REPO/NAME:VERSION
Unauthorized
If you get an error message with “FATA[0001] … unauthorized: No permission to write manifest”
use skopeo sync --dest docker --src docker to add the artifact.