Invalid container name (.)

Dear docker compose community,

I am trying to install some container using docker componse in an Ubuntu 24.04.2 LTS vm. Docker was installed following official documentation Ubuntu | Docker Docs and my docker compose command is like:

docker compose -f base.yml -f postgres.yml -f jwt-security.yml -f haproxy-api-gateway.yml -f openchami-svcs.yml -f autocert.yml -f coredhcp.yml -f pcs.yml -f vault.yml -f etcd.yml -f rfe.yml -f sushy.yml -f configurator.yml up -d

However, I am getting the following error:

Container .                                 Error response from daemon: Invalid container name (.), only [a-zA-Z0-9][a-zA-Z0-9_.-] ar...

I don’t quite understand this error because there is no container named ‘.’ in the docker compose files.

I would like to ask if someone knows what this error is about?

thanks

Seems like the final rendered compose file doesn’t look like you expect it to be.

You might want to check the rendered output:

docker compose \
  -f base.yml \
  -f postgres.yml \
  -f jwt-security.yml \
  -f haproxy-api-gateway.yml \
  -f openchami-svcs.yml \
  -f autocert.yml \
  -f coredhcp.yml \
  -f pcs.yml \
  -f vault.yml \
  -f etcd.yml \
  -f rfe.yml \
  -f sushy.yml \
  -f configurator.yml \
  config

Note: the error message was cut off. You can append --no-trunc to see the full error message.