amanharitsh123 / sugarizer-school-box

Sugarizer School Box GSoC '18
Apache License 2.0
2 stars 6 forks source link

Docker Daemon not starting in Chroot #10

Open amanharitsh123 opened 6 years ago

amanharitsh123 commented 6 years ago

Cant start docker daemon in chroot error while running docerkd Error starting daemon: Devices cgroup isn't mounted PS : Error occured while building on optimization branch.

quozl commented 6 years ago
mount -t proc none "${R}/proc"
mount -t sysfs none "${R}/sys"
chroot_exec bash </dev/tty >/dev/tty 2>/dev/tty

which will pause at that point giving you a bash prompt, and then use the shell to figure out what is needed by docker. This saves you time because you don't have to wait for a build to get to that stage.

amanharitsh123 commented 6 years ago

I have mounted cgroupfs , using sudo service docker start but now we are having this issue

Error starting daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain: iptables failed: iptables -t nat -N DOCKER: iptables v1.6.0: can't initialize iptables tablenat': iptables who? (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. (exit status 3)``