Docker Community Forums

Share and learn in the Docker community.

How do I access a USB drive on a OSX host from inside a docker container?

docker

(Tristank) #1

How do I access a USB drive on a OSX host from inside a docker container?

$ docker --version Docker version 1.12.0-rc2, build 906eacd, experimental
$ docker run -e DISPLAY=$DISPLAY_MAC --device /dev/disk1:/dev/sda -it jess/gparted
$ docker: Error response from daemon: linux runtime spec devices: error gathering device information while adding custom device "/dev/disk1": lstat /dev/disk1: no such file or directory.

There is thread at stackoverflow which deals with them same question but regarding the docker toolbox environment.