# Strategy for download between docker container and localhost

**URL:** <https://discourse.nodered.org/t/strategy-for-download-between-docker-container-and-localhost/53582>\
**Category:** Dashboard\
**Created:** [11 November 2021 17:06 UTC](https://discourse.nodered.org/t/strategy-for-download-between-docker-container-and-localhost/53582 "2021-11-11T17:06:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MiguelSoares](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@MiguelSoares](https://discourse.nodered.org/u/MiguelSoares)\
**Post date:** [11 November 2021 17:06 UTC](https://discourse.nodered.org/t/strategy-for-download-between-docker-container-and-localhost/53582/1 "2021-11-11T17:06:03Z")

</div>

Hello everyone,

I have a node red flow with dashboard running in a docker container.  
I have the download option on the dashboard to copy files from an RPi to the local PC, however I need a strategy to download the container to the localhost (local PC). Through scp I can already download the RPi to the container, however I don't know how I can do the end of the process (from the container to the location).

Does anyone have any idea how to do it or has anyone done something related?

Thank you all

---

<div class="post-metadata">

**Author:** ![RootShell-coder](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rootshell-coder/32/47167_2.png) [@RootShell-coder](https://discourse.nodered.org/u/RootShell-coder)\
**Post date:** [11 November 2021 18:24 UTC](https://discourse.nodered.org/t/strategy-for-download-between-docker-container-and-localhost/53582/2 "2021-11-11T18:24:09Z")

</div>

named volume won't help?  
if you are using docker-compose.  
then first you declare the named volume (share) in the section

```auto
volumes:
   share:

```

then you plug / forward it inside the container

```auto
    volumes:
    - share:/home/share

```

named containers on linux can usually be found here` /var/lib/docker/volumes/docker_share/_data`

`scp /var/lib/docker/volumes admin@ipPC:/home/admin` from RPi to PC  
`scp admin@ipRPi:/home/admin /var/lib/docker/volumes ` from PC to RPi  
you may need to correctly arrange the permissions for reading and writing in the directory

---

<div class="post-metadata">

**Author:** ![RootShell-coder](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rootshell-coder/32/47167_2.png) [@RootShell-coder](https://discourse.nodered.org/u/RootShell-coder)\
**Post date:** [11 November 2021 18:44 UTC](https://discourse.nodered.org/t/strategy-for-download-between-docker-container-and-localhost/53582/3 "2021-11-11T18:44:13Z")

</div>

It may be more convenient to use NFS or Samdo. You can pass a named volume to any number of containers

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [11 December 2021 18:44 UTC](https://discourse.nodered.org/t/strategy-for-download-between-docker-container-and-localhost/53582/4 "2021-12-11T18:44:21Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
