Skip to content

Create non-existing bind volumes #185

@maweki

Description

@maweki

I am not sure whether docker or docker-compose does this and conversely I don't know whether the issue lies with podman or podman-compose:

For postgres containers we often have a setup like this:

services:

  db:
    image: postgres
    restart: always
    environment:
      POSTGRES_PASSWORD: example
    volumes:
    - "./pg-data:/var/lib/postgresql/data"

in docker the folder pg-data is created automatically, if it doesn't exist. Via podman-compose I get

Error: error checking path "/tmp/foo/./pg-data": stat /tmp/foo/./pg-data: no such file or directory
125

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions