Skip to content

Instantly share code, notes, and snippets.

@philips
Created December 11, 2014 22:20
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save philips/bf96c263bc1d4b27c3a3 to your computer and use it in GitHub Desktop.
Save philips/bf96c263bc1d4b27c3a3 to your computer and use it in GitHub Desktop.
Instructions for trying ext4+overlay with docker! In an up-to-date SDK:
Write the following to /build/amd64-usr/etc/portage/package.keywords/overlay
sys-kernel/coreos-sources
sys-kernel/coreos-kernel
sys-fs/btrfs-progs
app-emulation/docker
In src/scripts make the following change to switch to ext4:
--- a/build_library/disk_layout.json
+++ b/build_library/disk_layout.json
@@ -66,8 +66,7 @@
"label":"ROOT",
"type":"coreos-resize",
"blocks":"4427776",
- "fs_type":"btrfs",
- "fs_subvolume":"root",
+ "fs_type":"ext4",
"mount":"/"
}
},
Build packages/images/etc. Boot a vm and write the following to
/etc/systemd/system/docker.service.d/overlay.conf
[Service]
Environment=DOCKER_DRIVER=overlay
Now systemctl daemon-reload, restart docker and do that docker thang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment