chenxin
chenxin

Reputation: 423

Unable to see non-Latin filename in manually created host volume

Host: Windows 10

Docker: 1.12.0

VirtureBox: 5.1.4

I did the following to share my host folder for docker:

  1. add vbox sharefolder with:

    C:/Program Files/Oracle/VirtualBox/VBoxManage sharedfolder add default -name projects -hostpath d:/Documents/Projects -automount

  2. ssh to docker-machine and add file /mnt/sda1/var/lib/boot2docker/bootlocal.sh as:

    mkdir -p /d/Documents/projects

    mount -t vboxsf -o defaults,uid=id -u docker,gid=id -g dockerprojects /d/Documents/projects

  3. restart docker-machine.

  4. ssh to docker-machine to see my file:

    ls /d/Documents/projects

    .. only filename with full latin characters showed

    ls /c/Users/myname/Desktop

    .. all files showd, although non-latin characters display as ?, this is no problem

How can I make my new created host volume work with non-latin filenames as the default one?

Upvotes: 0

Views: 142

Answers (1)

chenxin
chenxin

Reputation: 423

Great thanks to https://github.com/ailispaw, the problem was solved by adding option iocharset to mount command:

mount -t vboxsf -o defaults,iocharset=utf8,uid=id -u docker,gid=id -g docker

The issue in github is: https://github.com/boot2docker/boot2docker/issues/1205#event-820392641

Upvotes: 0

Related Questions