mirror of https://github.com/docker/compose.git
@gtardif @rumpl Use %q instead of \"%s\"
Co-authored-by: Djordje Lukic <djordje.lukic@docker.com>
This commit is contained in:
parent
0dcab4004d
commit
da3c3dab1c
|
@ -267,7 +267,7 @@ 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 "%s" from compose app "%s", you must delete the entire compose app with docker compose down`, containerName, groupName))
|
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))
|
||||||
}
|
}
|
||||||
cg, err := deleteACIContainerGroup(ctx, cs.ctx, groupName)
|
cg, err := deleteACIContainerGroup(ctx, cs.ctx, groupName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue