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
bash
before the other commands - For containerd
gmake install
failed had to rungmake
thengmake install
- Move
containerd
to/usr/local/etc/rc.d
before runningservice containerd onstart
cp 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.zfs
is 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
gmake
andgmake install
- containerd has a limited path so I put the runj exes in the
/bin
folder withcp /bin/* /bin