NetSoerfer
Explorer
- Joined
- May 8, 2016
- Messages
- 57
I'm trying to install docker-freebsd in an iocage jail. I realise that docker-freebsd is far from stable and currently doesn't even have a maintainer, but I'd still like to try.
I've created a VNET iocage jail:
I managed to fix a couple of errors:
Question: How do I persist this, as I believe this is undone on reboot? What happens when I update to 11.1-U6 or 11.2?
I've created a VNET iocage jail:
iocage create --name docker -r LATEST
ip4_addr="vnet0|10.1.1.2/24"
vnet="on" defaultrouter="10.42.1.1"
boot="on" host_hostname="docker"
allow_raw_sockets="1"
mount_devfs="1"
allow_mount_devfs="1"
allow_mount_zfs="1"
allow_mount="1"
enforce_statfs="0"
I managed to fix a couple of errors:
Fixed by editing /usr/local/etc/rc.d/docker withroot@docker:/ # docker -d
netstat: kvm not available: /dev/mem: No such file or directory
${docker_nat_iface=epair0b}
in the jail.Fixed withroot@docker:/ # docker -d
WARN[0000] Kernel version detection is available only on linux
INFO[0000] Listening for HTTP on unix (/var/run/docker.sock)
FATA[0000] Error starting daemon: error initializing graphdriver: Cannot find root filesystem tank/iocage/jails/docker/root: exit status 1: "/sbin/zfs zfs get -rHp -t filesystem all tank/iocage/jails/docker/root" => cannot open 'tank/iocage/jails/docker/root': dataset does not exist
root@pegasus:~ # zfs jail 32 freenas-boot/ROOT/11.1-U5
.Question: How do I persist this, as I believe this is undone on reboot? What happens when I update to 11.1-U6 or 11.2?
Um, I'm lost here. Any suggestions on how to proceed?root@docker:/ # docker -d
WARN[0000] Kernel version detection is available only on linux
INFO[0000] Listening for HTTP on unix (/var/run/docker.sock)
WARN[0000] Running kldload pf failed with message: , error: exit status 1
WARN[0000] port allocator - using fallback port range 49153-65535 due to error: open /proc/sys/net/ipv4/ip_local_port_range: no such file or directory
INFO[0000] Bridge interface not found, trying to create it
FATA[0000] Error starting daemon: unknown exec driver native
Last edited: