Support #907
Build a Custom FreeBSD Docker Image on FreeBSD
Status:
Closed
Priority:
Normal
Assignee:
Category:
Jails / Containers
Target version:
Description
This is a guide for building a custom FreeBSD Docker image on FreeBSD 11.
Build The Image¶
- Create a working directory for the image:
mkdir ~/freebsd11-custom && cd ~/freebsd11-custom
- Download the components to add to the image:
fetch https://download.freebsd.org/ftp/releases/amd64/11.0-RELEASE/base.txz fetch https://download.freebsd.org/ftp/releases/amd64/11.0-RELEASE/lib32.txz fetch https://download.freebsd.org/ftp/releases/amd64/11.0-RELEASE/ports.txz
- Create a Dockerfile:
vi Dockerfile
- And add the following:
FROM scratch ADD base.txz / ADD lib32.txz / ADD ports.txz / CMD ["/bin/sh"]
- And add the following:
- Build the image:
docker build -t freebsd11-custom .
Resources¶
Updated by Daniel Curtis over 7 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 50
Updated by Daniel Curtis over 7 years ago
- Status changed from In Progress to Resolved
- % Done changed from 50 to 100