Created
March 14, 2018 21:01
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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