Project

General

Profile

Support #907

Build a Custom FreeBSD Docker Image on FreeBSD

Added by Daniel Curtis over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Jails / Containers
Target version:
Start date:
07/09/2017
Due date:
% Done:

100%

Estimated time:
0.50 h
Spent time:

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"]
      
  • Build the image:
    docker build -t freebsd11-custom .
    

Resources

#1

Updated by Daniel Curtis over 7 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 50
#2

Updated by Daniel Curtis over 7 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 50 to 100
#3

Updated by Daniel Curtis about 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF