|
@@ -267,7 +267,8 @@ func (cs *aciContainerService) Logs(ctx context.Context, containerName string, r
|
|
|
func (cs *aciContainerService) Delete(ctx context.Context, containerID string, _ bool) error {
|
|
func (cs *aciContainerService) Delete(ctx context.Context, containerID string, _ bool) error {
|
|
|
groupName, containerName := getGroupAndContainerName(containerID)
|
|
groupName, containerName := getGroupAndContainerName(containerID)
|
|
|
if groupName != containerID {
|
|
if groupName != containerID {
|
|
|
- return errors.New(fmt.Sprintf("cannot delete service %q from compose app %q, you must delete the entire compose app with docker compose down", containerName, groupName))
|
|
|
|
|
|
|
+ msg := "cannot delete service %q from compose application %q, you can delete the entire compose app with docker compose down --project-name %s"
|
|
|
|
|
+ return errors.New(fmt.Sprintf(msg, containerName, groupName, groupName))
|
|
|
}
|
|
}
|
|
|
cg, err := deleteACIContainerGroup(ctx, cs.ctx, groupName)
|
|
cg, err := deleteACIContainerGroup(ctx, cs.ctx, groupName)
|
|
|
if err != nil {
|
|
if err != nil {
|