Docker stack secrets issue

jq: error: Could not open file /var/lib/secrets: No such file or directory

Nice error. I suggest you share your docker-compose.yml file.

Hello

the issue is using docker yaml file set secrets using docker secrets.

docker secrets were created using command line of docker (docker secret create)

the problem is using yaml file on service there is a section named secrets it is only defined the name of the secrets was created using docker secrets cli.

checking the documentation on docker instead of using docker secrets using a file to get the secrets ( How to use secrets in Docker Compose | Docker Docs) but in my case I am trying to integrate docker secrets on docker stack (using a yaml file).

error
jq: error: Could not open file /run/secrets/

Again

I suggest you share your docker-compose.yml file.