# Docker compose persistent volume mapping on windows fail

**URL:** <https://forum.inductiveautomation.com/t/docker-compose-persistent-volume-mapping-on-windows-fail/66880>\
**Category:** Ignition\
**Tags:** ignition81, docker\
**Created:** [November 24, 2022, 8:42am UTC](https://forum.inductiveautomation.com/t/docker-compose-persistent-volume-mapping-on-windows-fail/66880 "2022-11-24T08:42:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stra](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/stra/32/23678_2.png) [@stra](https://forum.inductiveautomation.com/u/stra)\
**Post date:** [November 24, 2022, 8:42am UTC](https://forum.inductiveautomation.com/t/docker-compose-persistent-volume-mapping-on-windows-fail/66880/1 "2022-11-24T08:42:54Z")

</div>

I tried using Ignition with Docker compose but now I'm bogged down:

This code works fine:

```auto
services:
  gateway:
    image: inductiveautomation/ignition
    ports:
      - "9001:8088"
    volumes:
      - gw-data:/usr/local/bin/ignition/data
    environment:
     - ACCEPT_IGNITION_EULA=Y
     - GATEWAY_ADMIN_USERNAME=admin
     - GATEWAY_ADMIN_PASSWORD= password
     - IGNITION_EDITION=standard
    command: >
      -n gateway-1

volumes:
  gw-data:

```

But if I modify it for mapping the volume in my folder the container stop

```auto
services:
  gateway:
    image: inductiveautomation/ignition
    ports:
      - "9001:8088"
    volumes:
      - ./gw-data:/usr/local/bin/ignition/data
    environment:
     - ACCEPT_IGNITION_EULA=Y
     - GATEWAY_ADMIN_USERNAME=admin
     - GATEWAY_ADMIN_PASSWORD=password
     - IGNITION_EDITION=standard
    command: >
      -n gateway-1

```

the log:

```auto
init | 2022/11/24 07:39:13 | Parsed systemName argument; new value: gateway-1
init | 2022/11/24 07:39:13 | Creating init.properties file
init | 2022/11/24 07:39:13 | Adding SystemName=gateway-1 to init.properties
init | 2022/11/24 07:39:13 | Creating gateway.xml
cp: cannot stat '/usr/local/bin/ignition/data/gateway.xml_clean': No such file or directory

```

That makes me crazy ...  
I use Docker on Windows 10 all update

If someone has the idea?

---

<div class="post-metadata">

**Author:** ![stra](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/stra/32/23678_2.png) [@stra](https://forum.inductiveautomation.com/u/stra)\
**Post date:** [November 24, 2022, 10:55am UTC](https://forum.inductiveautomation.com/t/docker-compose-persistent-volume-mapping-on-windows-fail/66880/2 "2022-11-24T10:55:09Z")

</div>

sorry duplicate:  
[https://forum.inductiveautomation.com/t/unable-to-mount-ignition-data-folder-in-an-external-volume-using-docker/64928](https://forum.inductiveautomation.com/t/unable-to-mount-ignition-data-folder-in-an-external-volume-using-docker/64928)
