Skip to content

platform specification not supported in Docker Compose files #11

Closed

Description

@ybouhachem

Problem Description

Container-Compose doesn't support the platform specification that is commonly used in Docker Compose files for cross-platform compatibility on Apple Silicon Macs.

Current Behavior

When using Container-Compose with Docker Compose files that include platform: linux/amd64, the tool fails to handle this specification properly.

Expected Behavior

Container-Compose should either:

  1. Support the platform specification for cross-platform container orchestration
  2. Gracefully ignore unsupported platform specifications with a warning
  3. Provide clear error messages about unsupported features

Steps to Reproduce

Create a docker-compose.yml file with platform specification:

version: '2'
services:
    dbserver:
      restart: always
      image: postgis/postgis:12-2.5
      platform: linux/amd64
      volumes:
      - ./init.sql:/docker-entrypoint-initdb.d/init.sql
      ports:
        - "5432:5432"
      environment:
        POSTGRES_PASSWORD: 'test'
        POSTGRES_USER: 'test'
        POSTGRES_DB: 'test_db'
--- Processing Services ---
["dbserver"]
Pulling Image postgis/postgis:12-2.5...
Note: Service 'dbserver' is not explicitly connected to any networks. It will likely use the default bridge network.

Starting service: dbserver
Starting dbserver
----------------------------------------

dbserver: Error: unsupported: "Platform linux/arm64"

Activity

  1. Mcrich23 commented on Oct 8, 2025

    @Mcrich23
    Owner

    Hi @Nazdroth,
    I am so sorry that this is happening. If someone else doesn't investigate first, I will do so when I find time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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