# Running Ignition in podman container, mount data volume

**URL:** <https://forum.inductiveautomation.com/t/running-ignition-in-podman-container-mount-data-volume/110112>\
**Category:** Ignition\
**Created:** [August 22, 2025, 2:22pm UTC](https://forum.inductiveautomation.com/t/running-ignition-in-podman-container-mount-data-volume/110112 "2025-08-22T14:22:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hulla](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@hulla](https://forum.inductiveautomation.com/u/hulla)\
**Post date:** [August 22, 2025, 2:22pm UTC](https://forum.inductiveautomation.com/t/running-ignition-in-podman-container-mount-data-volume/110112/1 "2025-08-22T14:22:59Z")

</div>

Hello I want to use Ignition in podman container and I want to mount my data volume so I have control over the data.

```python
$ cat podman.run
podman run -d \
-p 11088:8088 \
--name ignition81 \
-e ACCEPT_IGNITION_EULA=Y \
--volume /opt/ignition81/data:/usr/local/bin/ignition/data \
docker.io/inductiveautomation/ignition:8.1.49

```

I run into:

```python
$ podman logs ignition81
init | 2025/08/22 13:50:38 | Creating init.properties fileinit | 2025/08/22 13:50:38 | Creating gateway.xmlcp: cannot stat '/usr/local/bin/ignition/data/gateway.xml_clean': No such file or directory

```

According to [Docker Image | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/platform/docker-image#preserving-gateway-state) I should be able to mount named volume. It alos says “If the volume doesn't already exist, it will be created automatically.” Is this a docker thing? Because when I rm the dir I get “Error: statfs /opt/ignition81/data: no such file or directory“.

I found here on forum some strange cp tricks, no, I just want a fresh install to start a new GW. I also asked AI, it recomend create without named volume, then stop cantainer then:

```python
podman cp ignition81:/usr/local/bin/ignition/data /opt/ignition81/

```

Which is also totally awkward and doesnt work anyway because this doesnt keep permissions.

What is a standart way to do this? According to the manual, it should be no problem.

---

<div class="post-metadata">

**Author:** ![hulla](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@hulla](https://forum.inductiveautomation.com/u/hulla)\
**Post date:** [August 22, 2025, 3:40pm UTC](https://forum.inductiveautomation.com/t/running-ignition-in-podman-container-mount-data-volume/110112/2 "2025-08-22T15:40:12Z")

</div>

There is a difference between named volume and a host volume.

```python
--volume igntion81-data:/usr/local/bin/ignition/data

```

is a named volume

```python
--volume /opt/ignition81/data:/usr/local/bin/ignition/data

```

is a host volume.

With any other container image, this makes no difference. But with ignition image it is. One works, the other not.
