Skip to content

security_opt allows value without a dash #1444

@bam80

Description

@bam80

security_opt element should accept a list (array?):

security_opt:
  - label:user:USER
  - label:role:ROLE

At least for a single value, the dash is not enforced here, so following syntax is possible for podman-compose:

security_opt:
  label=disable

Docker-compose doesn't allow that:

$ docker compose up
validating docker-compose.yml: services.<service>.security_opt must be a array

Following syntax works there:

security_opt:
  - label=disable
$ podman-compose version
podman-compose version 1.5.0
podman version 5.8.2

Environment:

  • OS: Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions