Public Repository

Last pushed: a year ago
Short Description
FreeBSD Containers (12.0, 11.0, 10.x, or 9.3)
Full Description

pkg (1.8.7) is already bootstraped into all containers.
12.0-current, latest (r305427)

Available Tags

  • 12.0-current
  • 11.0-release
  • 11.0-rc3
  • 11.0-rc2
  • 10.3-stable
  • 10.3-release
  • 10.2-release
  • 10.1-release
  • 9.3-release

Requirements

  • FreeBSD >= 11.0-CURRENT, r28424, OSVERSION 1100074
  • ZFS (It's possible to "kldload zfs" into a GENERIC kernel)
  • security/ca_root_nss
  • sysutils/docker-freebsd

If you don't have a zpool, you can create one loading the ZFS module, and using a raw file to do all the magic for you. Here you have some easy steps to walk through it:

root@host:~ # kldload zfs
root@host:~ # dd if=/dev/zero of=/zroot.raw bs=1m count=4000
root@host:~ # zpool create -f zroot /zroot.raw
root@host:~ # zfs create -o mountpoint=/usr/docker zroot/docker

.
Build Station

  • FreeBSD 12.0-CURRENT #0 r305427: Mon Sep 5 14:52:27 BRT 2016 (amd64)

Docker Version

  • Client version: 1.7.0-dev
  • Client API version: 1.19
  • Go version (client): go1.6.3
  • Git commit (client): b1c37d2
  • OS/Arch (client): freebsd/amd64
  • Server version: 1.7.0-dev
  • Server API version: 1.19
  • Go version (server): go1.6.3
  • Git commit (server): b1c37d2
  • OS/Arch (server): freebsd/amd64

Docker Source

FreeBSD Wiki


Playground

user@host:~ % uname -mor
FreeBSD 12.0-CURRENT amd64

user@host:~ % docker pull -a egypcio/freebsd

user@host:~ % docker images | awk '{print $1":"$2}' | grep freebsd
egypcio/freebsd:latest
egypcio/freebsd:12.0-current-tor
egypcio/freebsd:12.0-current
egypcio/freebsd:11.0-release
egypcio/freebsd:11.0-rc3
egypcio/freebsd:11.0-rc2
egypcio/freebsd:10.3-stable
egypcio/freebsd:10.3-release
egypcio/freebsd:10.2-release
egypcio/freebsd:10.1-release
egypcio/freebsd:9.3-release

user@host:~ % docker run egypcio/freebsd:9.3-release /usr/sbin/pkg --version
1.8.7

user@host:~ % docker run egypcio/freebsd:10.3-stable /bin/freebsd-version -u
10.3-STABLE

user@host:~ % docker run egypcio/freebsd:11.0-rc2 /bin/freebsd-version -u
11.0-RC2

user@host:~ % docker run egypcio/freebsd ifconfig lo1
lo1: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
inet 172.17.0.18 netmask 0xffff0000
groups: lo

user@host:~ % sudo pfctl -sn
Password:
nat on alc0 inet from 172.17.0.0/16 to any -> (alc0) round-robin

user@host:~ % docker run egypcio/freebsd ping -c 1 4.2.2.2
PING 4.2.2.2 (4.2.2.2): 56 data bytes
64 bytes from 4.2.2.2: icmp_seq=0 ttl=53 time=81.915 ms

--- 4.2.2.2 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 81.915/81.915/81.915/0.000 ms

Docker Pull Command
Owner
egypcio