Crossposted using Lemmit.
Original post from /r/docker by /u/CrashOverride93 on 2023-07-07 15:40:32+00:00.
As the title says…
I’m looking to add the following line in a docker-compose file, but when I try to deploy the container, it tells me that a string must be given.
services:
app:
(...)
security_opt:
- no-new-privileges: true
(...)
And, this doesn’t help me a lot:
https://docs.docker.com/compose/compose-file/compose-file-v3/#security_opt
How have the ‘security_opt’ be used in a docker-compose?
You must log in or register to comment.