Skip to content
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

unsupported interpolation for COMPOSE_PROJECT_NAME #1073

Open
europ opened this issue Nov 11, 2024 · 0 comments
Open

unsupported interpolation for COMPOSE_PROJECT_NAME #1073

europ opened this issue Nov 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@europ
Copy link

europ commented Nov 11, 2024

Describe the bug
podman-compose does not support interpolation for COMPOSE_PROJECT_NAME variable - anywhere in compose file.

To Reproduce

  1. Create docker-compose.yml
name: custom_project-name
services:
  test:
    container_name: '${COMPOSE_PROJECT_NAME}-test'
    image: container-registry.oracle.com/os/oraclelinux:8-slim
    command:
      - sleep
      - "5"
  1. Run podman-compose up

Expected behavior

# created container

Actual behavior

Error: running container create option: names must match [a-zA-Z0-9][a-zA-Z0-9_.-]*: invalid argument
[test] | Error: unknown shorthand flag: 't' in -test
[test] | See 'podman start --help'

Output

$ podman-compose version
podman-compose version 1.2.0
podman version 5.2.5

$ podman-compose up
Error: running container create option: names must match [a-zA-Z0-9][a-zA-Z0-9_.-]*: invalid argument
[test] | Error: unknown shorthand flag: 't' in -test
[test] | See 'podman start --help'

Environment:

  • OS: Mac
  • podman version: 5.2.5
  • podman compose version: 1.2.0

Additional context

@europ europ added the bug Something isn't working label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant