This repository was archived by the owner on Oct 31, 2023. It is now read-only.
This repository was archived by the owner on Oct 31, 2023. It is now read-only.
Could not reach any registry endpoint #88
Open
Description
I'm getting this error all of a sudden when running vagrant up
My Vagrantfile:
VAGRANTFILE_API_VERSION = "2"
ENV['VAGRANT_DEFAULT_PROVIDER'] ||= 'docker'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.ssh.insert_key = false
config.vm.define "db" do |app|
app.vm.provider "docker" do |d|
d.image = "postgres"
d.name = "myapp_db"
d.ports = ['5432:5432']
d.vagrant_vagrantfile = "Vagrantfile.host"
end
end
config.vm.define "redis" do |v|
v.vm.provider "docker" do |d|
d.image = "redis"
d.name = 'myapp_redis'
d.ports = ["6379:6379"]
d.vagrant_vagrantfile = "Vagrantfile.host"
end
end
end
Vagrantfile.host:
Vagrant.configure("2") do |config|
config.ssh.insert_key = false
config.vm.box = "mitchellh/boot2docker"
config.vm.provider "virtualbox" do |v|
v.check_guest_additions = false
v.functional_vboxsf = false
v.customize ['modifyvm', :id, '--memory', 4096]
v.customize ['modifyvm', :id, '--acpi', 'on']
v.customize ['modifyvm', :id, '--cpus', 4]
v.customize ['modifyvm', :id, '--cpuexecutioncap', '100']
v.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']
v.customize ['modifyvm', :id, '--natdnsproxy1', 'on']
end
config.nfs.functional = false
config.vm.network :forwarded_port, guest: 5432, host: 5432
config.vm.network :forwarded_port, guest: 6379, host: 6379
end
Here is the log:
$ vagrant up
Bringing machine 'db' up with 'docker' provider...
Bringing machine 'redis' up with 'docker' provider...
==> db: Removing hosts
==> db: No machine id, nothing removed from /etc/hosts
==> db: Docker host is required. One will be created if necessary...
==> redis: Removing hosts
==> redis: No machine id, nothing removed from /etc/hosts
==> redis: Docker host is required. One will be created if necessary...
db: Vagrant will now create or start a local VM to act as the Docker
db: host. You'll see the output of the `vagrant up` for this VM below.
db:
db: Removing hosts
db: No machine id, nothing removed from /etc/hosts
db: Importing base box 'mitchellh/boot2docker'...
db: Matching MAC address for NAT networking...
db: Checking if box 'mitchellh/boot2docker' is up to date...
db: Setting the name of the VM: myapp_default_1451202150495_66425
db: Clearing any previously set network interfaces...
db: Preparing network interfaces based on configuration...
db: Adapter 1: nat
db: Forwarding ports...
db: 2375 => 2375 (adapter 1)
db: 5432 => 5432 (adapter 1)
db: 6379 => 6379 (adapter 1)
db: 22 => 2222 (adapter 1)
db: Checking for host entries
db: Running 'pre-boot' VM customizations...
db: Booting VM...
db: Waiting for machine to boot. This may take a few minutes...
db: SSH address: 127.0.0.1:2222
db: SSH username: docker
db: SSH auth method: private key
db: Warning: Connection timeout. Retrying...
db: Warning: Authentication failure. Retrying...
db: Machine booted and ready!
No installation found.
The guest's platform ("tinycore") is currently not supported, will try generic Linux method...
Copy iso file /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
Installing Virtualbox Guest Additions 5.0.4 - guest version is unknown
mkdir: can't create directory '/tmp/selfgz7981531': No such file or directory
Cannot create target directory /tmp/selfgz7981531
You should try option --target OtherDirectory
An error occurred during installation of VirtualBox Guest Additions 5.0.4. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
redis: Docker host VM is already ready.
==> db: Syncing folders to the host VM...
db: Installing rsync to the VM...
db: Rsyncing folder: /Users/karlingen/myapp/ => /var/lib/docker/docker_1451202177_17507
==> redis: Syncing folders to the host VM...
==> db: Warning: When using a remote Docker host, forwarded ports will NOT be
==> db: immediately available on your machine. They will still be forwarded on
==> db: the remote machine, however, so if you have a way to access the remote
==> db: machine, then you should be able to access those ports there. This is
==> db: not an error, it is only an informational message.
==> db: Creating the container...
db: Name: myapp_db
db: Image: postgres:9.4.1
db: Volume: /var/lib/docker/docker_1451202177_17507:/vagrant
db: Port: 5432:5432
redis: Rsyncing folder: /Users/karlingen/myapp/ => /var/lib/docker/docker_1451202182_3829
==> redis: Warning: When using a remote Docker host, forwarded ports will NOT be
==> redis: immediately available on your machine. They will still be forwarded on
==> redis: the remote machine, however, so if you have a way to access the remote
==> redis: machine, then you should be able to access those ports there. This is
==> redis: not an error, it is only an informational message.
==> redis: Fixed port collision for 22 => 2222. Now on port 2200.
==> redis: Creating the container...
redis: Name: myapp_redis
redis: Image: library/redis
redis: Volume: /var/lib/docker/docker_1451202182_3829:/vagrant
redis: Port: 6379:6379
==> db: An error occurred. The error will be shown after all tasks complete.
==> redis: An error occurred. The error will be shown after all tasks complete.
An error occurred while executing multiple actions in parallel.
Any errors that occurred are shown below.
An error occurred while executing the action on the 'db'
machine. Please handle this error then try again:
A Docker command executed by Vagrant didn't complete successfully!
The command run along with the output from the command is shown
below.
Command: "docker" "run" "--name" "myapp_db" "-d" "-p" "5432:5432" "-v" "/var/lib/docker/docker_1451202177_17507:/vagrant" "postgres:9.4.1"
Stderr: Unable to find image 'postgres:9.4.1' locally
Pulling repository postgres
2015/12/27 07:43:04 Could not reach any registry endpoint
Stdout:
An error occurred while executing the action on the 'redis'
machine. Please handle this error then try again:
A Docker command executed by Vagrant didn't complete successfully!
The command run along with the output from the command is shown
below.
Command: "docker" "run" "--name" "myapp_redis" "-d" "-p" "6379:6379" "-v" "/var/lib/docker/docker_1451202182_3829:/vagrant" "library/redis"
Stderr: Unable to find image 'library/redis' locally
Pulling repository library/redis
2015/12/27 07:43:06 Could not reach any registry endpoint
I tried destroying and rebuilding a couple of times.
Any ideas what this might be?
Metadata
Metadata
Assignees
Labels
No labels