Skip to content
A method for building LinuxKit images for Docker-CE with custom kernels.
Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
isofix Small README update Dec 13, 2019
linuxkit
README.md

README.md

Wifi for LinuxKit & Docker For Mac

by @singe from @sensepost

Testing wifi requires certain kernel capabilities. Docker-CE for MacOS does not have these. This necessitates building a wifi capable kernel.

Prerequisites

go get -u github.com/linuxkit/linuxkit/src/cmd/linuxkit
  • cloned from source
git clone https://github.com/linuxkit/linuxkit
cd linuxkit
make
export PATH=$PATH:$(pwd)/bin

brew tap linuxkit/linuxkit
brew install --HEAD linuxkit

Instructions

You need to build a LinuxKit-based ISO to run as your host Docker. This can be done with:

Fetch this repo

git clone https://github.com/singe/linuxkit-for-mac
cd linuxkit-for-mac

Build the ISO

cd ../linuxkit
linuxkit build --disable-content-trust --format iso-efi docker-for-mac-wifi.yml

Run your new Docker host:

./run-host.sh

This is a wrapper for the commands listed in linuxkit's own docs.

Interact with your Docker host (using normal docker commands):

./run-client.sh info

Details

You can’t perform that action at this time.