linux containers (2)

Davide Airaghi

Docker: Update all the images

If you want to pull and update all the images you have so far downloaded (and are still present on your system) using docker you can execute the following command: for IMAGE in $( LANG=en docker image ls -a --format table | grep -v -E "^REPOSITORY"…

Continue reading...
Davide Airaghi

Slackware: CentOS linux container

If you need to create a CentOS based linux container on your Slackware here you can find how i've made it. Before you start
  • (re)compile your kernel including every config option needed to have lxc-checkconfig output "enable" in each line.
  • (re)compile your kernel to add support for "networking bridge"
  • update rpm package using the one found  here
  • install yum package, you can find it here
  • make sure to have  lxc package installed (it's in the main Slackware repository)
  • make sure tu have installed bridge-utils package (it's in the main Slackware repository)
  • make sure to have enough free disk space (my setup used at least 400MB)
  • add at the end of /etc/rc.d/rc.local the following lines /usr/sbin/brctl addbr br0 /usr/sbin/brctl br0 10.0.0.1/24 /usr/sbin/iptables -t nat -A POSTROUTING -s 10.0.0.100 -o eth0 -j MASQUERADE /sbin/sysctl net.ipv4.ip_forward=1
Continue reading...