Skip to content

Docker-in-Docker build is fragile to loopback exhaustion #101

@smarterclayton

Description

@smarterclayton

I'm seeing this quite commonly - builds with DinD fail because they can't get a loopback device. Is there some obvious cleanup step we are not doing, or is this path just really fragile?

$ docker logs 235fb847e05c
Attempting to create /dev/loop4 for docker ...
Attempting to create /dev/loop5 for docker ...
2014/09/18 08:49:51 docker daemon: 1.1.2 d84a070/1.1.2; execdriver: native; graphdriver: 
[4eab6c59] +job serveapi(unix:///var/run/docker.sock)
[4eab6c59] +job initserver()
[4eab6c59.initserver()] Creating server
[error] attach_loopback.go:42 There are no more loopback devices available.
loopback mounting failed
[4eab6c59] -job initserver() = ERR (1)
2014/09/18 08:49:51 loopback mounting failed
Docker-in-Docker daemon not accessible

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions