skip to Main Content

I’m trying to work with Docker on my local environment, but I assume I have some issues with configuration because I cannot pull/push my local images.

I have this issue even on an empty image; please see the example below.
My Dockerfile is a single line (I have tried different base images as well):

FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base

To build this image, I use the command:

docker build -f Dockerfile --force-rm -t test .

After this, I can see my image in the images list, I also can run local images, but I can’t pull/push image, I see the following errors:

enter image description here

I need the ability to pull images because I need it for Kubernetes deployment (Minikube).

Thanks!

2

Answers


  1. This error is related to the repository that will hold your docker image. It’s stating that the repository does not exist. Do you have a repository called test created somewhere?

    You can create one a number of ways, for example: Docker hub, ECR, Azure

    Login or Signup to reply.
  2. First you mentioned you are trying to pull local images, it’s not required. After the build image will be saved locally only no need to pull.

    If you are planning to run it with minikube you can use the local images with pushing to any type of repository.

    In Kubernetes deployment set the imagePullPolicy to Never so K8s wont go on the internet to fine the image it will use from locally.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search