Skip to content

Instantly share code, notes, and snippets.

@No9
Last active October 14, 2022 20:18
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save No9/5dd6eab806f14a0eb3ce6f9433b223f9 to your computer and use it in GitHub Desktop.
Save No9/5dd6eab806f14a0eb3ce6f9433b223f9 to your computer and use it in GitHub Desktop.
Additional notes on the containerd on freebsd article

containerd on FreeBSD

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 run gmake then gmake install
  • Move containerd to /usr/local/etc/rc.d before running service 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 and gmake install
  • containerd has a limited path so I put the runj exes in the /bin folder with cp /bin/* /bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment