Open amanharitsh123 opened 6 years ago
10-bootstrap.sh
how the minimum filesystems are mounted;mount -t proc none "${R}/proc"
mount -t sysfs none "${R}/sys"
also see functions.sh
, in fact please read all the source code and understand it, :grin:
for diagnosing this problem, use an interactive bash shell within the script;
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.
/sys/fs/cgroup
is mounted; on mine it is a tmpfs of about 464 Mb,umount
and mount
it, perhaps finding where in system startup it is mounted,10-bootstrap.sh
and functions.sh
, so that further runs will do so with the cgroup fs available.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 table
nat': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
(exit status 3)``
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.