Skip to content

Host-mounted volumes on Windows / Mac #1

Description

@p-a-s-c-a-l

See https://docs.docker.com/engine/userguide/containers/dockervolumes/#mount-a-host-directory-as-a-data-volume

Important: "If you are using Docker Machine on Mac or Windows, your Docker daemon has only limited access to your OS X or Windows filesystem. Docker Machine tries to auto-share your /Users (OS X) or C:\Users (Windows) directory."

To be able mount additional folder of the host add it to shared folders:

shared-folders

Edit /mnt/sda1/var/lib/boot2docker/profile of the boot2docker vm and add

mkdir -p /w/git_work
mount -t vboxsf -o uid=1000,gid=50 w/git_work /w/git_work 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions