Skip to content

Passing of environment variables does not match behaviour of docker-compose #491

@ztane

Description

@ztane

Given compose file

---
version: '3.7'
services:
  test:
    image: ubuntu:20.04
    container_name: ubuntu
    environment:
    - FOO
    command: bash -c 'set | grep FOO'

and having the FOO set in .env, the variable is not passed into the container. Using - FOO=${FOO} works but either one works with docker-compose.

podman-compose version: 1.0.4
using podman version: 3.4.2

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