Open karlingen opened 8 years ago
I don't get the same problem with another box:
config.vm.box = "williamyeh/ubuntu-trusty64-docker"
+1
:+1:
I'm not doing anything big, just vagrant init, up, ssh, git clone, docker build
docker@boot2docker:~/docker-ytdl$ docker build .
Sending build context to Docker daemon 546.3 kB
Sending build context to Docker daemon
Step 0 : FROM alpine:latest
Pulling repository alpine
2016/04/21 13:49:20 Could not reach any registry endpoint
/var/log/docker.log say
root@boot2docker:/var/log# cat docker.log
[debug] server.go:1036 Calling POST /build
[info] POST /build?rm=1&t=
[2408df38] +job build()
[debug] archive.go:88 [tar autodetect] n: [46 47 0 0 0 0 0 0 0 0]
[debug] archive.go:88 [tar autodetect] n: [46 47 0 0 0 0 0 0 0 0]
[2408df38] +job pull(alpine, latest)
[debug] session.go:259 [registry] Calling GET https://index.docker.io/v1/repositories/alpine/images
[debug] http.go:162 https://index.docker.io/v1/repositories/alpine/images -- HEADERS: map[User-Agent:[docker/1.2.0 go/go1.3.1 git-commit/fa7b24f kernel/3.16.1-tinycore64 os/linux arch/amd64]]
[debug] pull.go:89 Retrieving the tag list
[debug] http.go:162 https://registry-1.docker.io/v1/repositories/library/alpine/tags -- HEADERS: map[User-Agent:[docker/1.2.0 go/go1.3.1 git-commit/fa7b24f kernel/3.16.1-tinycore64 os/linux arch/amd64]]
[debug] session.go:214 Got status code 403 from https://registry-1.docker.io/v1/repositories/library/alpine/tags
[error] pull.go:92 Could not reach any registry endpoint
Could not reach any registry endpoint
[2408df38] -job pull(alpine, latest) = ERR (1)
Could not reach any registry endpoint
[2408df38] -job build() = ERR (1)
A curl on the ".../tags" url give me a
{"error": "Requires authorization"}
Reading this post I guess this boot2docker is missing some auth token.
Same problem here.
Makes me wonder if you added docker support on vagrant just for marketing?
docker registry killed support for docker clients v1.5. Is this built with docker client version above 1.5?
docker@boot2docker:~$ docker --version
Docker version 1.2.0, build fa7b24f
It's a shame, I need a very light weight VM that only needs to run docker, and I'd like it from someone I trust. This would have fit the bill nicely. I might try building my own at some point 😃
Still an open issue for those trying to use config.vm.box = "mitchellh/boot2docker"
2017/03/23 17:42:06 Could not reach any registry endpoint
root@boot2docker:~$ docker --version
Docker version 1.2.0, build fa7b24f
However, if you instead use:
hashicorp/boot2docker
getting docker 1.7.0 as of 3/23/2017 and no longer have that issue.
I'm getting this error all of a sudden when running
vagrant up
My Vagrantfile:
Vagrantfile.host:
Here is the log:
I tried destroying and rebuilding a couple of times.
Any ideas what this might be?