feat(pre-deploy): add support for x-pre_deploy extension in Compose + e2e test

This commit is contained in:
Pasha Sviderski
2026-04-08 19:16:42 +10:00
parent 772b31b57f
commit 0e820f9c52
13 changed files with 371 additions and 4 deletions
+1 -1
View File
@@ -258,7 +258,7 @@ func (cli *Client) InspectContainer(
}
prefixMatchCandidates := []api.MachineServiceContainer{}
for _, c := range svc.Containers {
for _, c := range append(svc.Containers, svc.HookContainers...) {
if c.Container.ID == containerNameOrID ||
c.Container.Name == containerNameOrID {
return c, nil