Monday, July 02, 2012

Share a folder from ubuntu server with virtualbox

 Add a existing user to existing group

# usermod -a -G vboxsf pedro
# id pedro

sudo mount -t vboxsf kits /var/www/site

Even better...

In the “Shared Folders” screen, give full access, but don’t check auto-mount
Check your uid&gid (by doing >id)
Add the following line /etc/fstab

site   /var/www/site  vboxsf  uid=1000,gid=1000,nodev,noexec,nosuid,auto,rw 0 0

How to get the IP address of the docker host from inside a docker container

/sbin/ip route|awk '/default/ { print $3 }'