Project

General

Profile

Support #907

Build a Custom FreeBSD Docker Image on FreeBSD

Added by Daniel Curtis about 3 years ago. Updated almost 3 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

History

#1 Updated by Daniel Curtis about 3 years ago

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

#2 Updated by Daniel Curtis about 3 years ago

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

#3 Updated by Daniel Curtis almost 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF