-
Why do you create a docker secret with a file who is inside a volume instead of just read the file of this mounted volume ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There is a significant difference. When using However, in swarm mode, many nodes need to be managed. Copying a file to a single node is not an ideal solution. With |
Beta Was this translation helpful? Give feedback.
There is a significant difference. When using
mount
, the file must exist on the host. This approach works well if you plan to deploy only one or two hosts.However, in swarm mode, many nodes need to be managed. Copying a file to a single node is not an ideal solution. With
secrets
, the file is copied locally and stored in secrets, making it accessible to all nodes. This simplifies the process of updating or managing configurations for services.