How to change owner of Docker for Windows

Environment

  • Windows 10 [10.0.15063]
  • Docker for Windows Community Edition 17.03.1-ce-win12(12058) stable
  • The host is mounted and partitioned into NTFS format

Command

host

docker run -d --volume E:/tmp:/tmp/test --name debian debian:8
docker exec -it debian /bin/bash

container

cd /tmp/test
mkdir abc
ls -l # This line will be shown that root is the owner of abc
useradd hello
chown hello:hello abc
ls -l # This line will be shown that root is still the owner of abc

Question

How can I change the owner of mounted directories? or I can’t within Windows?