command: docker mcp secret
short: Manage secrets
long: Manage secrets
pname: docker mcp
plink: docker_mcp.yaml
cname:
    - docker mcp secret ls
    - docker mcp secret rm
    - docker mcp secret set
clink:
    - docker_mcp_secret_ls.yaml
    - docker_mcp_secret_rm.yaml
    - docker_mcp_secret_set.yaml
examples: |-
    ### Use secrets for postgres password with default policy

    > docker mcp secret set POSTGRES_PASSWORD=my-secret-password
    > docker run -d -l x-secret:POSTGRES_PASSWORD=/pwd.txt -e POSTGRES_PASSWORD_FILE=/pwd.txt -p 5432 postgres

    ### Pass the secret via STDIN

    > echo my-secret-password > pwd.txt
    > cat pwd.txt | docker mcp secret set POSTGRES_PASSWORD
deprecated: false
hidden: false
experimental: false
experimentalcli: false
kubernetes: false
swarm: false

