Error AtlasError Documentation and Resolution

Docker Compose profile name is invalid

Valid profiles names follow the regex format [a-zA-Z0-9][a-zA-Z0-9_.-]+

Docker Compose requires profile names to match a specific pattern, and invalid names can break profile-based stack configuration.

Valid profiles names follow the regex formatcompose
Valid profiles names follow the regex format [a-zA-Z0-9][a-zA-Z0-9_.-]+
  • A profile name contains unsupported characters.
  • The profile name begins with an invalid character.
  • A copied profile name does not comply with the Compose specification.
  1. Rename the profile to use only supported characters and format.
  2. Check every profile reference in the Compose file after renaming it.
  3. Validate the Compose configuration before running the stack.
Docker Docs: Compose file profiles
Docker Compose invalid profile name: causes and fixes | Error Atlas