# Programmatically accessing persistent storage in multicontainer

**URL:** <https://forums.balena.io/t/programmatically-accessing-persistent-storage-in-multicontainer/54003>\
**Category:** Product support\
**Tags:** raspberrypi3, docker\
**Created:** [January 6, 2020, 8:30pm UTC](https://forums.balena.io/t/programmatically-accessing-persistent-storage-in-multicontainer/54003 "2020-01-06T20:30:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdcraver](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mdcraver](https://forums.balena.io/u/mdcraver)\
**Post date:** [January 6, 2020, 8:30pm UTC](https://forums.balena.io/t/programmatically-accessing-persistent-storage-in-multicontainer/54003/1 "2020-01-06T20:30:06Z")

</div>

I am able to create the volumes, but I am unable to access them via my python program.

Following are the details for one example volume.  
In my docker-compose.yml

```
volumes:
     wifi_config:
services:
     local_wifi_config:
          privileged: true
          restart: always
          build: ./local_wifi_config
          volumes:
               - 'wifi_config:/CONFIG

```

I see the created volume via the command prompt at,` /var/lib/docker/volumes/1560835_wifi_config`

How should I go about programmatically accessing this path? I attempted the following.

`config_file_path = '/var/lib/docker/volumes/'"$BALENA_APP_ID"'_wifi_config/'`

I have referenced the " Persistent Storage" section of [https://www.balena.io/docs/learn/develop/runtime/](https://www.balena.io/docs/learn/develop/runtime/) and I am using a production Balena OS version 2.43.

---

<div class="post-metadata">

**Author:** ![robertgzr](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/robertgzr/32/1387_2.png) [@robertgzr](https://forums.balena.io/u/robertgzr)\
**Post date:** [January 7, 2020, 8:23am UTC](https://forums.balena.io/t/programmatically-accessing-persistent-storage-in-multicontainer/54003/2 "2020-01-07T08:23:15Z")

</div>

Hi Matt,

with your compose file you set up a named volume `wifi_config` to be mounted at `/CONFIG` inside your `local_wifi_config` container.

The program inside the container should be able to access it under that path.
