As there is currently no package or port of iocage, to get started we’ll first need to install git
git
# pkg install git
Let’s also create /usr/local/src for the base of our operations:
/usr/local/src
# mkdir -p /usr/local/src # cd /usr/local/src