Skip to content

singe/linuxkit-for-mac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A method for building LinuxKit images for Docker-CE with custom kernels.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages