You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
please advice if there is any issues with my docker-compose.yml
container-compose up
Info: No 'name' field found in docker-compose.yml. Using directory name as project name: astra
Stopping container: astra-postgres
--- Processing Services ---
["postgres"]
Pulling Image timescale/timescaledb:latest-pg17...
Error: invalidArgument: "Unknown OS in postgres"
#!/bin/bash
set -e
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_USER" <<-EOSQL
-- CREATE EXTENSION IF NOT EXISTS "pg_uuidv7";
-- CREATE EXTENSION IF NOT EXISTS timescaledb;
CREATE EXTENSION IF NOT EXISTS vector WITH SCHEMA PUBLIC;
-- ALTER EXTENSION timescaledb UPDATE;
SELECT * FROM PG_EXTENSION;
-- set custom config
-- ALTER DATABASE postgres SET custom.secret_key=${SECRET_KEY}";
-- set system config
-- ALTER SYSTEM SET wal_level = logical;
-- ALTER SYSTEM SET max_wal_senders = 5;
-- ALTER SYSTEM SET max_replication_slots = 5;
EOSQL
The container_name property is passed as the value for the platform, although this property does not contain any platform information. I assume passing the platform property instead fixes the issue.
A workaround is to just remove the container_name from the compose file.
Thank you! That should be a valid workaround for the moment, but I will create a pull request fixing this by changing it to actually pass in the platform instead of container_name.
Activity
[-]Error ; Unknown OS in postgres[/-][+]Error: Unknown OS in postgres[/+]Mcrich23 commentedon Sep 14, 2025
My guess is that it can't find the image
timescale/timescaledb:latest-pg17xmlking commentedon Sep 14, 2025
i did pull with
container image pullahead !Mcrich23 commentedon Sep 14, 2025
hmmm, then I don't know. If you want to invite me to the project or send me a copy ([email protected]), I would be happy to do some debugging.
xmlking commentedon Sep 15, 2025
can you please test by creating
docker-compose.ymlfile with below content , then runcontainer-compose upI tested with just
docker-compose.ymland.envand got errorMcrich23 commentedon Sep 15, 2025
sure, but I need help resolving
./infra/db/init-database.sh:/docker-entrypoint-initdb.d/init-data.sh:Zxmlking commentedon Sep 15, 2025
You can comment out that line
xmlking commentedon Sep 15, 2025
I had this in that file
tauu commentedon Oct 14, 2025
After running into the issue and investigating it for a bit, I think the error is this line
Container-Compose/Sources/Container-Compose/Commands/ComposeUp.swift
Line 335 in b18bfd5
The container_name property is passed as the value for the platform, although this property does not contain any platform information. I assume passing the platform property instead fixes the issue.
A workaround is to just remove the container_name from the compose file.
Mcrich23 commentedon Oct 14, 2025
Thank you! That should be a valid workaround for the moment, but I will create a pull request fixing this by changing it to actually pass in the platform instead of container_name.
tauu commentedon Oct 14, 2025
oh that was a fast fix, thank you :)