kaniko cannot push ubuntu based images
alpine image build with kaniko
ngni-t14-sh4 src/kanikotest ‹main› » docker run -it --rm -v ~/.docker:/kaniko/.docker:ro -v $(pwd):/foo:ro gcr.io/kaniko-project/executor:v1.9.0-debug --context /foo --dockerfile /foo/Dockerfile_alpine --build-arg=ALPINE_VERSION=latest --destination dockerhub.fokus.fraunhofer.de:5000/bjoern.riemer/kanikotest/kaniko_alpine:latest
INFO[0000] Retrieving image manifest alpine:latest
INFO[0000] Retrieving image alpine:latest from registry index.docker.io
INFO[0001] Built cross stage deps: map[]
INFO[0001] Retrieving image manifest alpine:latest
INFO[0001] Returning cached image manifest
INFO[0001] Executing 0 build triggers
INFO[0001] Building stage 'alpine:latest' [idx: '0', base-idx: '-1']
INFO[0001] Unpacking rootfs as cmd RUN date > date.txt requires it.
INFO[0002] RUN date > date.txt
INFO[0002] Initializing snapshotter ...
INFO[0002] Taking snapshot of full filesystem...
INFO[0004] Cmd: /bin/sh
INFO[0004] Args: [-c date > date.txt]
INFO[0004] Running: [/bin/sh -c date > date.txt]
INFO[0004] Taking snapshot of full filesystem...
INFO[0004] Pushing image to dockerhub.fokus.fraunhofer.de:5000/bjoern.riemer/kanikotest/kaniko_alpine:latest
INFO[0006] Pushed dockerhub.fokus.fraunhofer.de:5000/bjoern.riemer/kanikotest/kaniko_alpine@sha256:037099198da26d003caebabc4dde7d9e93a628b7df26625510bbe6a186cb7bf9
ubuntu image build via kaniko -> upload fails
ngni-t14-sh4 src/kanikotest ‹main› » docker run -it --rm -v ~/.docker:/kaniko/.docker:ro -v $(pwd):/foo:ro gcr.io/kaniko-project/executor:v1.9.0-debug --context /foo --dockerfile /foo/Dockerfile_ubuntu --build-arg=UBUNTU_VERSION=22.04 --destination dockerhub.fokus.fraunhofer.de:5000/bjoern.riemer/kanikotest/kaniko_ubuntu:22.04
INFO[0000] Retrieving image manifest ubuntu:22.04
INFO[0000] Retrieving image ubuntu:22.04 from registry index.docker.io
INFO[0001] Built cross stage deps: map[]
INFO[0001] Retrieving image manifest ubuntu:22.04
INFO[0001] Returning cached image manifest
INFO[0001] Executing 0 build triggers
INFO[0001] Building stage 'ubuntu:22.04' [idx: '0', base-idx: '-1']
INFO[0001] Unpacking rootfs as cmd RUN date > date.txt requires it.
INFO[0004] RUN date > date.txt
INFO[0004] Initializing snapshotter ...
INFO[0004] Taking snapshot of full filesystem...
INFO[0005] Cmd: /bin/sh
INFO[0005] Args: [-c date > date.txt]
INFO[0005] Running: [/bin/sh -c date > date.txt]
INFO[0005] Taking snapshot of full filesystem...
INFO[0009] Pushing image to dockerhub.fokus.fraunhofer.de:5000/bjoern.riemer/kanikotest/kaniko_ubuntu:22.04
error pushing image: failed to push to destination dockerhub.fokus.fraunhofer.de:5000/bjoern.riemer/kanikotest/kaniko_ubuntu:22.04: PUT https://dockerhub.fokus.fraunhofer.de:5000/v2/bjoern.riemer/kanikotest/kaniko_ubuntu/manifests/22.04: MANIFEST_INVALID: manifest invalid; map[]
alpinbe image via docker
ngni-t14-sh4 src/kanikotest ‹main› » docker build -t dockerhub.fokus.fraunhofer.de:5000/bjoern.riemer/kanikotest/docker_alpine:latest --build-arg=ALPINE_VERSION=latest . -f Dockerfile_alpine && docker push dockerhub.fokus.fraunhofer.de:5000/bjoern.riemer/kanikotest/docker_alpine:latest
Sending build context to Docker daemon 74.75kB
Step 1/3 : ARG ALPINE_VERSION=latest
Step 2/3 : FROM alpine:${ALPINE_VERSION}
---> 9ed4aefc74f6
Step 3/3 : RUN date > date.txt
---> Running in cd9fa37b8f49
Removing intermediate container cd9fa37b8f49
---> f0370bf139e4
Successfully built f0370bf139e4
Successfully tagged dockerhub.fokus.fraunhofer.de:5000/bjoern.riemer/kanikotest/docker_alpine:latest
The push refers to repository [dockerhub.fokus.fraunhofer.de:5000/bjoern.riemer/kanikotest/docker_alpine]
5673ba9b5de5: Pushed
f1417ff83b31: Pushed
latest: digest: sha256:9674e44cec1dd628d752603e0591197a8d64814d817acde9dca7593b6af73ba2 size: 735
ubuntu based image via docker
ngni-t14-sh4 src/kanikotest ‹main› » docker build -t dockerhub.fokus.fraunhofer.de:5000/bjoern.riemer/kanikotest/docker_ubuntu:22.04 --build-arg=UBUNTU_VERSION=22.04 . -f Dockerfile_ubuntu && docker push dockerhub.fokus.fraunhofer.de:5000/bjoern.riemer/kanikotest/docker_ubuntu:22.04
Sending build context to Docker daemon 74.75kB
Step 1/3 : ARG UBUNTU_VERSION=22.04
Step 2/3 : FROM ubuntu:${UBUNTU_VERSION}
---> 58db3edaf2be
Step 3/3 : RUN date > date.txt
---> Running in e892365a2228
Removing intermediate container e892365a2228
---> be392786c564
Successfully built be392786c564
Successfully tagged dockerhub.fokus.fraunhofer.de:5000/bjoern.riemer/kanikotest/docker_ubuntu:22.04
The push refers to repository [dockerhub.fokus.fraunhofer.de:5000/bjoern.riemer/kanikotest/docker_ubuntu]
c246ef4a582c: Pushed
c5ff2d88f679: Pushed
22.04: digest: sha256:240f2d86306a2ed13e108fb017a2ac360277118fd86a7a4c7ad6607dd730d44a size: 736
ngni-t14-sh4 src/kanikotest ‹main› »