Last active
March 4, 2016 21:41
-
-
Save dschep/8f617de28157f8d35e69 to your computer and use it in GitHub Desktop.
Workaround bug in Linux boot2docker hosts not mounting home dirs (boot2docker/boot2docker#1085)
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
#!/bin/sh | |
# Work around for boot2docker/boot2docker#1085 | |
# Extracted from boot2docker/boot2docker#1086 | |
mkdir -p /hosthome | |
mount | grep -q /hosthome || mount -t vboxsf hosthome /hosthome \ | |
-o defaults,uid=$(id -u docker),gid=$(id -g docker) | |
ls -1 /hosthome | while read d | |
do | |
ln -s -f "/hosthome/${d}" "/home/${d}" | |
done |
Author
dschep
commented
Mar 4, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment