Docker Community Forums

Share and learn in the Docker community.

About security_opt in docker-compose

Override the default labeling scheme for each container.


  • label:user:USER
  • label:role:ROLE

Above is the description of security_opt in docker-compose document. but I still dont know how to use the security_opt in docker-compose.yml, please give me an example. thank you.
and what is labeling scheme of container?