# Cannot edit configs

**URL:** <https://forums.docker.com/t/cannot-edit-configs/148548>\
**Category:** General\
**Tags:** swarm\
**Created:** [June 19, 2025, 1:32pm UTC](https://forums.docker.com/t/cannot-edit-configs/148548 "2025-06-19T13:32:06Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![romgo](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/romgo/32/54354_2.png) [@romgo](https://forums.docker.com/u/romgo)\
**Post date:** [June 19, 2025, 1:32pm UTC](https://forums.docker.com/t/cannot-edit-configs/148548/1 "2025-06-19T13:32:06Z")

</div>

Hello,

I am surprise that the config functionnality does not allow to edit. Seems that the only way is to delete & recreate :

> **[docker config](https://docs.docker.com/reference/cli/docker/config/)**

I liked the idea, but seems that mount is more flexible.

Am I missing something here ?

Thank you

---

<div class="post-metadata">

**Author:** ![meyay](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/meyay/32/34000_2.png) [@meyay](https://forums.docker.com/u/meyay)\
**Post date:** [June 19, 2025, 7:19pm UTC](https://forums.docker.com/t/cannot-edit-configs/148548/2 "2025-06-19T19:19:27Z")

</div>

This is a swarm feature, and as such is used to make config files available on any cluster node that could potentially deploy the swarm task. The same is true for secrets, just with the difference that they are stored encrypted at rest in the cluster state.

With swarm, your docker client can run on a host that is not part of the swarm cluster, and still deploy a config or secret based on a local file from the host, without having to have the file available through the filesystem of every cluster node.

On a single node, neither configs, nor secrets really have a benefit compared to binding the files in read-only mode.

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/bluepuma77/32/32688_2.png) [@bluepuma77](https://forums.docker.com/u/bluepuma77)\
**Post date:** [June 20, 2025, 5:03am UTC](https://forums.docker.com/t/cannot-edit-configs/148548/3 "2025-06-20T05:03:42Z")

</div>

There is one benefit, you can inline the config into a single compose file ([example](https://github.com/bluepuma77/traefik-best-practice/tree/main/docker-traefik-socket-proxy)), no need for multiple files.

---

<div class="post-metadata">

**Author:** ![meyay](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/meyay/32/34000_2.png) [@meyay](https://forums.docker.com/u/meyay)\
**Post date:** [June 20, 2025, 4:37pm UTC](https://forums.docker.com/t/cannot-edit-configs/148548/4 "2025-06-20T16:37:06Z")

</div>

I haven’t though about that! Good point!

---

<div class="post-metadata">

**Author:** ![romgo](https://sea3.discourse-cdn.com/docker/user_avatar/forums.docker.com/romgo/32/54354_2.png) [@romgo](https://forums.docker.com/u/romgo)\
**Post date:** [July 17, 2025, 9:42am UTC](https://forums.docker.com/t/cannot-edit-configs/148548/5 "2025-07-17T09:42:10Z")

</div>

> [@bluepuma77](#):
>
> you can inline the config into a single compose file

seems interesting ! This would solve the issue I guess thanks for sharing!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/docker/original/3X/6/9/69c4b276d1979e4e35a2f0338bac246a4de21daf.png) [@system](https://forums.docker.com/u/system)\
**Post date:** [August 16, 2025, 9:42am UTC](https://forums.docker.com/t/cannot-edit-configs/148548/6 "2025-08-16T09:42:45Z")

</div>

Closed on August 16, 2025, 9:42am UTC

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