Skip to content

Instantly share code, notes, and snippets.

@ReSTARTR
Last active August 29, 2015 14:20
Show Gist options
  • Save ReSTARTR/5cdbd762c310c91fedad to your computer and use it in GitHub Desktop.
Save ReSTARTR/5cdbd762c310c91fedad to your computer and use it in GitHub Desktop.
unix domain socket is not writable with vboxsf
# boot2docker ssh
# cd /Users/yoshida # mounted volume
# Can write text file into the vboxsf volume
docker@boot2docker:/Users/yoshida$ docker run -it --rm -v `pwd`:/tmp ruby:2.0 touch /tmp/foo && ls foo
foo
docker@boot2docker:/Users/yoshida$ rm ./foo
# Cannot write sock file into the vboxsf volume
docker@boot2docker:/Users/yoshida$ docker run -it --rm -v `pwd`:/tmp ruby:2.0 ruby -rsocket -e 's = UNIXServer.new("/tmp/foo")'
-e:1:in `initialize': Operation not permitted - "/tmp/foo" (Errno::EPERM)
from -e:1:in `new'
from -e:1:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment