Skip to content

Octal format for mode: "0o400" does not work for docker compose v2.26.1-desktop.1 #22590

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
mjl-p4 opened this issue May 5, 2025 · 0 comments
Open
1 task done
Labels
area/compose Relates to docker-compose.yml spec or docker-compose binary

Comments

@mjl-p4
Copy link

mjl-p4 commented May 5, 2025

Is this a docs issue?

  • My issue is about the documentation content or website

Type of issue

Information is incorrect

Description

The example at https://docs.docker.com/compose/how-tos/use-secrets/ uses mode: "0o400" to set the mode of a /run/secrets/foo file, but on Fedora 41, docker compose v2.26.1-desktop.1 hates this syntax:

$ source .env && docker compose -p $COMPOSE_PROJECT_NAME -f docker-compose-dev.yml up
error while interpolating services.repoman.secrets.[].mode: failed to cast to expected type: strconv.Atoi: parsing "0o400": invalid syntax

Of course the goal is to put an octal number here, but it's not clear to me that strconv.Atoi("0400") is doing the right thing either?

Location

https://docs.docker.com/reference/compose-file/services/

Suggestion

No response

@mjl-p4 mjl-p4 added the status/triage Needs triage label May 5, 2025
@aevesdocker aevesdocker added area/compose Relates to docker-compose.yml spec or docker-compose binary and removed status/triage Needs triage labels May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/compose Relates to docker-compose.yml spec or docker-compose binary
Projects
None yet
Development

No branches or pull requests

2 participants