Skip to content

Instantly share code, notes, and snippets.

@imjasonh
Last active Apr 16, 2021
Embed
What would you like to do?
crane append + mutate
docker run --rm $(
go run ./cmd/crane mutate $(
go run ./cmd/crane/ append -b busybox -f <(tar -f - -c hello.sh) -t gcr.io/kontaindotme/appended \
) --entrypoint=/hello.sh --new_ref=gcr.io/kontaindotme/mutated \
)
2021/04/16 10:44:33 No matching credentials were found for "index.docker.io/library/busybox", falling back on anonymous
2021/04/16 10:44:35 existing blob: sha256:f531cdc67389c92deac44e019e7a1b6fba90d1aaa58ae3e8192f0e0eed747152
2021/04/16 10:44:37 pushed blob: sha256:078105f9432ce9585d7f6b76a2bd0aed14b1bae9dec29ed679a6b5576cb89664
2021/04/16 10:44:37 existing blob: sha256:d6a3237b5852e9da63a291612928da68d814897550b15e9e0ca77934a8672792
2021/04/16 10:44:38 gcr.io/kontaindotme/appended: digest: sha256:a58979bf3493cbc9acea0541190c5621853bc57b4683970d847ba23ab3b660e4 size: 586
2021/04/16 10:44:42 existing blob: sha256:f531cdc67389c92deac44e019e7a1b6fba90d1aaa58ae3e8192f0e0eed747152
2021/04/16 10:44:42 existing blob: sha256:078105f9432ce9585d7f6b76a2bd0aed14b1bae9dec29ed679a6b5576cb89664
2021/04/16 10:44:43 existing blob: sha256:ed9106856a3626c48113f96ce859ff559829ae5c36088dac7ace491446963880
2021/04/16 10:44:43 gcr.io/kontaindotme/mutated: digest: sha256:7ce925f8db677b622bc66687662a5c07d0f4301ed2b221120102731701608f23 size: 586
Unable to find image 'gcr.io/kontaindotme/mutated@sha256:7ce925f8db677b622bc66687662a5c07d0f4301ed2b221120102731701608f23' locally
gcr.io/kontaindotme/mutated@sha256:7ce925f8db677b622bc66687662a5c07d0f4301ed2b221120102731701608f23: Pulling from kontaindotme/mutated
f531cdc67389: Already exists
078105f9432c: Already exists
Digest: sha256:7ce925f8db677b622bc66687662a5c07d0f4301ed2b221120102731701608f23
Status: Downloaded newer image for gcr.io/kontaindotme/mutated@sha256:7ce925f8db677b622bc66687662a5c07d0f4301ed2b221120102731701608f23
hello
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment