Anyway to specify a different user to the host machine for docker volume?
<p>I don't have /home/abc1 on my host (host name: mzhao).</p>

<p>Then I did this:</p>

<pre><code>[mzhao@mzhao ~]$ docker run -it --user nobody -v home/abc1:/home/abc1 centos
bash-4.2$ id
uid=99(nobody) gid=99(nobody) groups=99(nobody)
</code></pre>

<p>On my host (mzhao), if I take a look of /home:</p>

<pre><code>[mzhao@mzhao home]$ ls -l |grep abc1
drwxr-xr-x   2 root     root          4096 Apr  2 21:26 abc1/
</code></pre>

<p>Is there a way to create /home/abc1 under another user on my host?</p>

<p>I am aware of docker user guide mentioned this: 
<code>auto-creation of the host path has been deprecated.</code></p>

<p>But I am just curious. This could happen just because the path does not exist on the host when user "docker command" and specify that directory as a volume.</p>