docker volume custom mount point : <p>I'm new to Docker and I was playing around with <code>docker volume</code>. I wanted to specify the location where <code>docker volume</code> stores the data. Much like when we provide the <code>-v</code> option when we execute <code>docker run</code>. <strong><code>Ex : -v /somefolder/:/var/somefolder</code></strong></p>

<p>How can we set a custom <strong>Mountpoint</strong> when we create a <code>docker volume</code>. I didn't find any options on docs.</p>

<p>When I inspect the volume</p>

<pre><code>[                                                                                        
    {                                                                                    
        "Name": "sampleproject_mysql_data",                                              
        "Driver": "local",                                                               
        "Mountpoint": "/mnt/sda1/var/lib/docker/volumes/sampleproject_mysql_data/_data", 
        "Labels": null,                                                                  
        "Scope": "local"                                                                 
    }                                                                                    
]   
</code></pre>

<p>I get something like above.</p>

<h2>Is there a way we can set custom Mountpoint. Through <code>docker volume</code> command or through <code>docker-compose.yml</code>?</h2>
