Q
Q
Quad_Tree2018-06-04 16:18:32
Computer networks
Quad_Tree, 2018-06-04 16:18:32

Why can't the VM inside Docker swarm find the image?

I'm reading the Docker documentation and settled on the swarm section ( https://docs.docker.com/get-started/part4/#accessi... I created two VMs, clustered them, connected to swarm-manager and tried deploy my application (5 instances of my container are launched.) I register docker stack ps applicationand see a lot of errors "No such image: quadtree/...." Logically, each VM should have loaded the image from docker.hub, but for some reason this is not I tried on the
swarm-manager VM to run a simple command to start the application:
docker run -p 80:80 quadtree/web-application"
And I got this as a result:

Unable to find image 'quadtree/web-application' locally
docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).
See 'docker run --help'.

Apparently the VM can't connect to Docker Hub. How can this be fixed?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question