Project

General

Profile

Support #910

Install Docker From Source on FreeBSD

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

Status:
Suspended
Priority:
Normal
Assignee:
Category:
Jails / Containers
Target version:
Start date:
08/10/2017
Due date:
% Done:

0%

Estimated time:

Description

This is a guide for installing Docker from source on FreeBSD 11.

WARNING: This is a work in progress. YMMV

Prepare the Environment

  • Make sure the system is up to date:
    pkg update && pkg upgrade
    
  • Install some dependencies:
    pkg install go git
    
  • Create a development workspace:
    mkdir /usr/local/go_devel
    
  • Add the go development workspace to the .cshrc script:
    echo setenv PATH $PATH:/usr/local/go_devel/bin >> $HOME/.cshrc
    echo setenv GOPATH /usr/local/go_devel >> $HOME/.cshrc
    source $HOME/.cshrc
    
  • Install go-md2man:
    go get go get github.com/cpuguy83/go-md2man
    cd /usr/local/go_devel/src/github.com/cpuguy83/go-md2man
    go build
    go install
    

Install Docker

Install runc

  • Get the runc source:
    go get github.com/opencontainers/runc
    
  • Get the Go dependent packages:
    go get github.com/moby/moby
    go get github.com/docker/cli
    go get github.com/containerd/containerd
    go get github.com/docker/runc
    go get github.com/docker/libnetwork
    

export DOCKER_BUILDTAGS='exclude_graphdriver_btrfs exclude_graphdriver_devicemapper exclude_graphdriver_aufs'

Resources

#1

Updated by Daniel Curtis about 6 years ago

  • Status changed from New to Suspended

Also available in: Atom PDF