the images I created locally from alpine docker as base image throw error when used to create a container.
I've also noticed docker always goes to search in remote repositories for these images.
❯ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
k8s-client 1.20.9 c099cb4a2ff0 2 minutes ago 470MB
swiftalk/k8s-client 1.20.9 798865e11408 5 minutes ago 470MB
swiftalk/terraform latest eaf18d663a17 3 days ago 88.1MB
swiftalk/packer latest 6bb62824b5b6 4 days ago 776MB
ubuntu bionic 7c0c6ae0b575 8 days ago 56.6MB
alpine/k8s 1.20.4 96faf4d3e224 9 days ago 533MB
❯ docker rmi swiftalk/k8s-client
Error: No such image: swiftalk/k8s-client
❯ docker run --rm -it --platform=linux/amd64 swiftalk/k8s-client:1.20.9 helm env
Unable to find image 'swiftalk/k8s-client:1.20.9' locally
docker: Error response from daemon: pull access denied for swiftalk/k8s-client, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
same error for images wihtout a repository prefix
❯ docker run --rm -it --platform=linux/amd64 k8s-client:1.20.9 helm env
Unable to find image 'k8s-client:1.20.9' locally
docker: Error response from daemon: pull access denied for k8s-client, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
I've build these images locally and not published them to any private docker repo
docker build --no-cache --build-arg KUBECTL_VERSION=1.20.9 && \
--build-arg HELM_VERSION=3.6.3 && \
--build-arg KUSTOMIZE_VERSION=v4.2.0 && \
--build-arg KUBESEAL_VERSION=V1.16.1 && \
--build-arg AWSCLI2_VERSION=2.2.25 -t swiftalk/k8s-client:1.20.9 .
I then tried
docker build --no-cache --build-arg KUBECTL_VERSION=1.20.9 && \
--build-arg HELM_VERSION=3.6.3 && \
--build-arg KUSTOMIZE_VERSION=v4.2.0 && \
--build-arg KUBESEAL_VERSION=V1.16.1 && \
--build-arg AWSCLI2_VERSION=2.2.25 -t k8s-client:1.20.9 .