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:
- Support the
platform specification for cross-platform container orchestration
- Gracefully ignore unsupported platform specifications with a warning
- 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"
Problem Description
Container-Compose doesn't support the
platformspecification 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:
platformspecification for cross-platform container orchestrationSteps to Reproduce
Create a docker-compose.yml file with platform specification: