Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DinD Why? #632

Open
prologic opened this issue Aug 11, 2017 · 2 comments
Open

DinD Why? #632

prologic opened this issue Aug 11, 2017 · 2 comments

Comments

@prologic
Copy link

I'm not having a lot of success getting a e2e simple example going :/

Noticed while poking around that DinD is being used as a way to run the functions?

$ dki --rm -v /var/run/docker.sock:/var/run/docker.sock iron/functions --help
+ sleep 3
+ /usr/local/bin/dind.sh
+ cut -f2
+ grep -Eh -w -m1 overlay|aufs /proc/filesystems
+ fsdriver=overlay
+ [ overlay == overlay ]
+ fsdriver=overlay2
+ cmd=dockerd 		--host=unix:///var/run/docker.sock 		--host=tcp://0.0.0.0:2375 		--storage-driver=overlay2
+ eval dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay2
+ dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --storage-driver=overlay2
can't create unix socket /var/run/docker.sock: device or resource busy
+ echo Docker crashed with exit code 1.  Respawning..
Docker crashed with exit code 1.  Respawning..
+ pidfile=/var/run/docker/libcontainerd/docker-containerd.pid
+ cat /var/run/docker/libcontainerd/docker-containerd.pid
cat: can't open '/var/run/docker/libcontainerd/docker-containerd.pid': No such file or directory
+ kill -9
sh: you need to specify whom to kill
+ exec --help
/usr/local/bin/entrypoint.sh: exec: line 1: --help: not found

Why? This seems like a poor design choice to me -- not the least which the Docker engine being spawned doesn't seem to be running successfully without crashing.

@dylanz
Copy link

dylanz commented Sep 7, 2017

@prologic I believe the original motivation of using DinD is explained here. It looks like there is a way to run directly, but the default being DinD is definitely a talking point.

@prologic
Copy link
Author

prologic commented Sep 7, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants