From e91bcda28c96b89f6f5409aa8ffe7f831e053433 Mon Sep 17 00:00:00 2001 From: Kazuki Ishigaki Date: Sun, 27 Aug 2023 07:07:10 +0000 Subject: [PATCH] Fix container name format https://github.com/docker/compose/pull/8655 --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 389ec86..7f12ea8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -65,7 +65,7 @@ x-common-options: &common-options { \ echo '#!/bin/sh -e'; \ echo 'if [ -t 1 ]; then tty_option=-t; fi'; \ - echo 'exec docker exec -i $$tty_option -w $$PWD '"${COMPOSE_PROJECT_NAME}_$${service_name}_1 $${command}"' "$$@"'; \ + echo 'exec docker exec -i $$tty_option -w $$PWD '"${COMPOSE_PROJECT_NAME}-$${service_name}-1 $${command}"' "$$@"'; \ } | sudo tee /usr/local/bin/$$command_name sudo chmod +x /usr/local/bin/$$command_name done