diff options
Diffstat (limited to 'compose/cli/command.py')
-rw-r--r-- | compose/cli/command.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compose/cli/command.py b/compose/cli/command.py index 9fd941bb..8a32a93a 100644 --- a/compose/cli/command.py +++ b/compose/cli/command.py @@ -122,12 +122,14 @@ def get_project(project_dir, config_path=None, project_name=None, verbose=False, ) with errors.handle_connection_errors(client): - return Project.from_config(project_name, config_data, client) + return Project.from_config( + project_name, config_data, client, environment.get('DOCKER_DEFAULT_PLATFORM') + ) def get_project_name(working_dir, project_name=None, environment=None): def normalize_name(name): - return re.sub(r'[^a-z0-9]', '', name.lower()) + return re.sub(r'[^-_a-z0-9]', '', name.lower()) if not environment: environment = Environment.from_env_file(working_dir) |