Skip to content

Instantly share code, notes, and snippets.

@singe
Created March 14, 2018 21:01
Show Gist options
  • Save singe/de9cc4df9004525f9bea6443a0c3cf22 to your computer and use it in GitHub Desktop.
Save singe/de9cc4df9004525f9bea6443a0c3cf22 to your computer and use it in GitHub Desktop.
A simple script to rebuild the linuxkit image used in Docker for Mac.
git clone https://github.com/linuxkit/linuxkit
cd linuxkit
currdir=$(pwd)
make
export PATH=$PATH:$currdir/bin
foo=$(grep isoEfi\ $currdir/src/cmd/linuxkit/vendor/github.com/moby/tool/src/moby/output.go|cut -d\" -f2)
docker pull $foo
cd examples
linuxkit build --format iso-efi docker-for-mac.yml
mv /Applications/Docker.app/Contents/Resources/linuxkit/docker-for-mac.iso /Applications/Docker.app/Contents/Resources/linuxkit/docker-for-mac.iso.orig
cp $currdir/examples/docker-for-mac-efi.iso /Applications/Docker.app/Contents/Resources/linuxkit/docker-for-mac.iso
screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment