Docker Community Forums

Share and learn in the Docker community.

How to edit config file in docker swarm

Hello everyone!

I am using config in multiple container, I want some node can edit this file config. But I get “Device or resource busy” error when edit or remove file. How can I do it?

This is my docker-compose file

privileged: true
configs:
  - source: config.cnf
    target: /etc/mysql/mariadb.conf.d/config.cnf
    uid: '0'
    gid: '0'
    mode: 0777