Error while pulling image: Get https://index.docker.io/v1/repositories/library/ubunut/images: on server misbehaving

3/27/2018

I have deployed minikube using the following link https://gist.github.com/edrex/b54023fc9dbe8d21c0c81f5cce523ede in My local machine and when i try to build a docker image using docker build -t hello-node:v1 . as per this link

https://kubernetes.io/docs/tutorials/stateless-application/hello-minikube/#create-your-nodejs-application

it throws the following error

Sending build context to Docker daemon 3.072kB Step 1 : FROM node:6.9.2 Pulling repository docker.io/library/node Error while pulling image: Get https://index.docker.io/v1/repositories/library/node/images: dial tcp: lookup index.docker.io on 192.168.122.1:53: server misbehaving

Any help would be off great use Thanks in advance..

-- user3398900
docker
docker-build
kubernetes
minikube

1 Answer

3/29/2018

Make sure to run $ eval $(minikube docker-env) in the current terminal to point to the docker instance in minikube.

-- Matt Rickard
Source: StackOverflow