Support #906
Install Docker on FreeBSD
Status:
Closed
Priority:
Normal
Assignee:
Category:
Jails / Containers
Target version:
Description
This is a guide for installing (the old and outdated) Docker on FreeBSD 11.
Prepare the Environment¶
- Make sure the system is up to date:
pkg update && pkg upgrade
Install Docker¶
- Install Docker:
pkg install docker-freebsd ca_root_nss
- Create the Docker ZFS dataset:
zfs create -o mountpoint=/usr/docker zroot/docker
- Start and enable docker at boot:
echo 'docker_enable="YES"' >> /etc/rc.conf service docker start
Containers¶
FreeBSD¶
- Pull a freebsd docker image:
docker pull lexaguskov/freebsd
- Start a shell inside the freebsd docker image:
docker run -t -i lexaguskov/freebsd /bin/csh
Ubuntu¶
- Pull an ubuntu docker image:
docker pull ubuntu
- Start a shell inside the freebsd docker image:
docker run -t -i ubuntu /bin/bash
Resources¶
Updated by Daniel Curtis over 7 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100