mirror of
https://github.com/docker/compose.git
synced 2025-07-22 13:14:29 +02:00
Make the compose message on start mean something
This commit is contained in:
parent
33758f0764
commit
13327ac617
@ -228,7 +228,7 @@ func addTag(groupDefinition *containerinstance.ContainerGroup, tagName string) {
|
|||||||
func (cs *aciContainerService) Start(ctx context.Context, containerID string) error {
|
func (cs *aciContainerService) Start(ctx context.Context, containerID string) error {
|
||||||
groupName, containerName := getGroupAndContainerName(containerID)
|
groupName, containerName := getGroupAndContainerName(containerID)
|
||||||
if groupName != containerID {
|
if groupName != containerID {
|
||||||
msg := "cannot delete service %q from compose application %q, you can delete the entire compose app with docker compose down --project-name %s"
|
msg := "cannot start specified service %q from compose application %q, you can update and restart the entire compose app with docker compose up --project-name %s"
|
||||||
return errors.New(fmt.Sprintf(msg, containerName, groupName, groupName))
|
return errors.New(fmt.Sprintf(msg, containerName, groupName, groupName))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user