We are trying to set up a swarm of hosts in a private, operational network which must be controlled in terms of version numbers of images, tools etc. No internet access is permitted from these hosts. Images can be installed onto hosts via docker save / load.
docker-engine is pre-installed, but
docker-machine create attempts to access index.docker.io, resulting in
Error creating machine:
docker-machine create -d generic \ --generic-ip-address 192.168.100.1 \ --generic-ssh-user <ssh-user> \ --generic-ssh-key ~/.ssh/swarm \ --engine-install-url "" \ --swarm \ --swarm-master \ --swarm-discovery token://<swarm token> \ swarm1
Error creating machine: Error running provisioning: Unable to pull image: Error while pulling image: Get https://index.docker.io/v1/repositories/library/swarm/images: dial tcp: lookup index.docker.io: no such host s
Note that a swarm image is pre-installed on the host:
root@swarm1# docker images | grep swarm swarm latest 7dbfc39dd91a 3 weeks ago 19.34 MB
How can we configure machine to not access the web? Setting
--engine-install-url to an empty string does not work.
Any help appreciated,