site_treelogo
  -   Terms of Use and Privacy
Apps | GNU/Linux | Meta
cutup   rss
site_treelogo
  -   Terms of Use and Privacy
Apps | GNU/Linux | Meta
cutup   rss

<<   <   >   >>

2021-02-08 | Apps | Running Docker on L1G3R

Make sure you have IPTables installed, and download the binaries from here. Either put them in a path that can be found, or stick them in /opt/docker and make sure to add the path so you can find it when you run Docker. Note that the L1G3R kernel config is slightly different from Linux From Scratch (LFS) or Beyond (BLFS). This kernel config currently works for almost all we do right now. After you extract and install the Docker binaries, add docker as a group. Finally, create the cgroup filesystem per this:

To mount:

mount -t tmpfs -o uid=0,gid=0,mode=0755 cgroup /sys/fs/cgroup
for c in `tail -n +2 /proc/cgroups | awk '{ print $1 }'`; do
        mkdir /sys/fs/cgroup/$c
        mount -n -t cgroup -o $c cgroup /sys/fs/cgroup/$c
done

To unmount:

cd /sys/fs/cgroup
for d in `tail -n +2 /proc/cgroups | awk '{ print $1 }'`; do
        umount $d || true
done

cd ..
umount /sys/fs/cgroup || true

There are more complete instructions here. For you LFS and BLFS folks trying to get Docker to work, this is running on a LFS/BLFS 9.0 base with the above kernel and the extra packages defined on L1G3R and NoNIC.

knocker docker