<p>You can mount a volume e.g. at <code>/app/artifacts</code> then set up your application to place the artifacts on that folder. </p>

<pre><code>docker run -d \
-v artifacts-vol:/app/artifacts \
artifact-creator:latest
</code></pre>

<p>then after that, you can mount the same volume to a separate container and specify on the new container to read the artifacts from the volume location</p>

<pre><code>docker run -d \
-v artifacts-vol:/app/artifacts \
artifact-reader:latest
</code></pre>

CC BY-SA 4.0
2020-03-24T07:16:04.943Z
2020-03-24T07:16:04.943Z
Josué Padilla
<p>I wish to create a volume and mount it to a docker container in order to collect some artifacts, and I want to reuse these artifacts into another docker container later on. Can i just mount the same volume to the new container and upload the artifacts? Is there an upload command for this?</p>

<docker><volume>
Upload data into docker container from docker volume
bojee
# Upload data into docker container from docker volume

(Asked by: username_0 on 2020-03-22)

I wish to create a volume and mount it to a docker container in order to collect some artifacts, and I want to reuse these artifacts into another docker container later on. Can i just mount the same volume to the new container and upload the artifacts? Is there an upload command for this?

**Tags:** docker, volume


---

## 1 answers

### Answer by username_1 on 2020-03-24. Score: 1

You can mount a volume e.g. at /app/artifacts then set up your application to place the artifacts on that folder. 
docker run -d \
-v artifacts-vol:/app/artifacts \
artifact-creator:latest

then after that, you can mount the same volume to a separate container and specify on the new container to read the artifacts from the volume location
docker run -d \
-v artifacts-vol:/app/artifacts \
artifact-reader:latest


---

