Loved this article and decided to take it for a drive. https://productionwithscissors.run/2022/09/04/containerd-linux-on-freebsd/ These notes are nits really and likely most people will find there way around them. That said I thought I would share as people new to FreeBSD may not have the patience.
- In FreeBSD R13.1 The default go is 1.18 so use
ln -s /usr/local/go118 /usr/local/go - Make sure you run bash and not sh by running
bashbefore the other commands - For containerd
gmake installfailed had to rungmakethengmake install - Move
containerdto/usr/local/etc/rc.dbefore runningservice containerd onstartcp bin/containerd /usr/local/etc/rc.d/ - On a non-ui FreeBSD use the
&background symbol to keep a prompt mkdir /var/lib/containerd/io.containerd.snapshotter.v1.zfsis required when runj executes a container. I got a bit confused too as containerd can run without it but you can't run a container with the snapshotter option.- runj also needs to be built with
gmakeandgmake install - containerd has a limited path so I put the runj exes in the
/binfolder withcp /bin/* /bin