-
Hello, From what I read, to be able to use docker secrets, it is necessary to be in swarm mode.
but from what I have read, it is not possible to use this in version 3.7. I have also tried to do it, but the container doesnt receive the privilege it needs and shuts down. So in conclusion, because of this , it is not possible for me to use docker secrets. What are you doing to do this? Here are the logs:
and here the yml i used:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You can use docker-compose for it. Not sure which version, I use 3.8 but it might be possible with < 3.8. That's my config: version: "3.8"
services:
gluetunnyc:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
volumes:
- gluetun:/gluetun
secrets:
- openvpn_user
- openvpn_password
secrets:
openvpn_user:
file: ./openvpn_user
openvpn_password:
file: ./openvpn_password |
Beta Was this translation helpful? Give feedback.
You can use docker-compose for it. Not sure which version, I use 3.8 but it might be possible with < 3.8.
That's my config: