Skip to content

Instantly share code, notes, and snippets.

@imjasonh
Created March 9, 2021 17:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save imjasonh/8d9139c3892295eb0fd21b4849865994 to your computer and use it in GitHub Desktop.
Save imjasonh/8d9139c3892295eb0fd21b4849865994 to your computer and use it in GitHub Desktop.
 ~/git/go-containerregistry/ [crane-rebase] go run ./cmd/crane rebase gcr.io/kontaindotme/rebase-me
2021/03/09 12:29:04 Detected old base from "base-digest" annotation: index.docker.io/library/ubuntu@sha256:e3d7ff9efd8431d9ef39a144c45992df5502c995b9ba3c53ff70c5b52a848d9c
2021/03/09 12:29:04 Detected new base from "base-tag" annotation: ubuntu:latest
2021/03/09 12:29:04 No matching credentials were found for "index.docker.io/library/ubuntu", falling back on anonymous
2021/03/09 12:29:04 No matching credentials were found for "index.docker.io/library/ubuntu", falling back on anonymous
2021/03/09 12:29:05 Set annotation "base-digest": index.docker.io/library/ubuntu@sha256:e3d7ff9efd8431d9ef39a144c45992df5502c995b9ba3c53ff70c5b52a848d9c
2021/03/09 12:29:05 Set annotation "base-tag": ubuntu:latest
2021/03/09 12:29:05 pushing rebased image as gcr.io/kontaindotme/rebase-me
2021/03/09 12:29:06 existing blob: sha256:5d3b2c2d21bba59850dac063bcbb574fddcb6aefb444ffcc63843355d878d54f
2021/03/09 12:29:06 existing blob: sha256:75adf526d75b82eb4f9981cce0b23608ebe6ab85c3e1ab2441f29b302d2f9aa8
2021/03/09 12:29:06 existing blob: sha256:3fc2062ea6672189447be7510fb7d5bc2ef2fda234a04b457d9dda4bba5cc635
2021/03/09 12:29:06 existing blob: sha256:f7340028718bd47b7df7022979c0284a4c6563f4390480b5461466f8aec485d3
2021/03/09 12:29:06 existing blob: sha256:7e937646cc8ee35717a715f7c7cfc30e659b8c045f19bf5de230ee0f647b0eab
2021/03/09 12:29:06 gcr.io/kontaindotme/rebase-me: digest: sha256:43d49e3c122ff448a912a48520c4e05e45b62a612b0a7b403b65186b4419ec1f size: 1071
sha256:43d49e3c122ff448a912a48520c4e05e45b62a612b0a7b403b65186b4419ec1f
 ~/git/go-containerregistry/ [crane-rebase] go run ./cmd/crane rebase gcr.io/kontaindotme/rebase-me --new_base=ubuntu:16.04
2021/03/09 12:32:08 Detected old base from "base-digest" annotation: index.docker.io/library/ubuntu@sha256:e3d7ff9efd8431d9ef39a144c45992df5502c995b9ba3c53ff70c5b52a848d9c
2021/03/09 12:32:08 No matching credentials were found for "index.docker.io/library/ubuntu", falling back on anonymous
2021/03/09 12:32:09 No matching credentials were found for "index.docker.io/library/ubuntu", falling back on anonymous
2021/03/09 12:32:09 Set annotation "base-digest": index.docker.io/library/ubuntu@sha256:edf232ee7dc18c57c063bc83533ef2c03c6dfae55a0124f7d372aed51cd1d9c8
2021/03/09 12:32:09 Set annotation "base-tag": ubuntu:16.04
2021/03/09 12:32:09 pushing rebased image as gcr.io/kontaindotme/rebase-me
2021/03/09 12:32:11 existing blob: sha256:5dfa26c6b9c9d1ccbcb1eaa65befa376805d9324174ac580ca76fdedc3575f54
2021/03/09 12:32:11 existing blob: sha256:4007a89234b4f56c03e6831dc220550d2e5fba935d9f5f5bcea64857ac4f4888
2021/03/09 12:32:11 existing blob: sha256:4c6ec688ebe374ea7d89ce967576d221a177ebd2c02ca9f053197f954102e30b
2021/03/09 12:32:11 existing blob: sha256:f7340028718bd47b7df7022979c0284a4c6563f4390480b5461466f8aec485d3
2021/03/09 12:32:11 existing blob: sha256:0ba7bf18aa406cb7dc372ac732de222b04d1c824ff1705d8900831c3d1361ff5
2021/03/09 12:32:11 existing blob: sha256:7ac9be97c43f3c70e90b72a501ddeb0986220d7815eb466508d3a3704c6ae392
2021/03/09 12:32:11 gcr.io/kontaindotme/rebase-me: digest: sha256:29aeeb3c0b00201202c3ea8688d7d436fb5af2d0d735cb75b60a765681658ecc size: 1230
sha256:29aeeb3c0b00201202c3ea8688d7d436fb5af2d0d735cb75b60a765681658ecc
 ~/git/go-containerregistry/ [crane-rebase] go run ./cmd/crane rebase gcr.io/kontaindotme/rebase-me --new_base=ubuntu:latest
2021/03/09 12:32:21 Detected old base from "base-digest" annotation: index.docker.io/library/ubuntu@sha256:edf232ee7dc18c57c063bc83533ef2c03c6dfae55a0124f7d372aed51cd1d9c8
2021/03/09 12:32:21 No matching credentials were found for "index.docker.io/library/ubuntu", falling back on anonymous
2021/03/09 12:32:21 No matching credentials were found for "index.docker.io/library/ubuntu", falling back on anonymous
2021/03/09 12:32:23 Set annotation "base-digest": index.docker.io/library/ubuntu@sha256:e3d7ff9efd8431d9ef39a144c45992df5502c995b9ba3c53ff70c5b52a848d9c
2021/03/09 12:32:23 Set annotation "base-tag": ubuntu:latest
2021/03/09 12:32:23 pushing rebased image as gcr.io/kontaindotme/rebase-me
2021/03/09 12:32:25 existing blob: sha256:5d3b2c2d21bba59850dac063bcbb574fddcb6aefb444ffcc63843355d878d54f
2021/03/09 12:32:25 existing blob: sha256:7e937646cc8ee35717a715f7c7cfc30e659b8c045f19bf5de230ee0f647b0eab
2021/03/09 12:32:25 existing blob: sha256:3fc2062ea6672189447be7510fb7d5bc2ef2fda234a04b457d9dda4bba5cc635
2021/03/09 12:32:25 existing blob: sha256:f7340028718bd47b7df7022979c0284a4c6563f4390480b5461466f8aec485d3
2021/03/09 12:32:25 existing blob: sha256:75adf526d75b82eb4f9981cce0b23608ebe6ab85c3e1ab2441f29b302d2f9aa8
2021/03/09 12:32:25 gcr.io/kontaindotme/rebase-me: digest: sha256:43d49e3c122ff448a912a48520c4e05e45b62a612b0a7b403b65186b4419ec1f size: 1071
sha256:43d49e3c122ff448a912a48520c4e05e45b62a612b0a7b403b65186b4419ec1f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment