What is the right way to add data to an existing named volume in Docker?
<p>I was using Docker in the old way, with a volume container:</p>

<pre><code>docker run -d --name jenkins-data jenkins:tag echo "data-only container for Jenkins"
</code></pre>

<p>But now I changed to the new way by creating a named volume:</p>

<pre><code> docker volume create --name my-jenkins-volume 
</code></pre>

<p>I bound this new volume to a new Jenkins container.
The only thing I've left is a folder in which I have the <code>/var/jenkins_home</code> of my previous jenkins container. (by using <code>docker cp</code>)
Now I want to fill my new named volume with the content of that folder.</p>

<p>Can I just copy the content of that folder to <code>/var/lib/jenkins/volume/my-jenkins-volume/_data</code>?</p>