Skip to content

Commit f5f4f49

Browse files
committed
Static mode can't reload config
Signed-off-by: David Gageot <[email protected]>
1 parent 67bdb82 commit f5f4f49

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cmd/docker-mcp/commands/gateway.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,15 @@ func gatewayCommand(docker docker.Client) *cobra.Command {
6868
options.Port = 8811
6969
}
7070

71+
if options.Static && options.Watch {
72+
return errors.New("cannot use --static with --watch")
73+
}
74+
7175
// Append additional catalogs to the main catalog path
7276
options.CatalogPath = append(options.CatalogPath, additionalCatalogs...)
7377
options.RegistryPath = append(options.RegistryPath, additionalRegistries...)
7478
options.ConfigPath = append(options.ConfigPath, additionalConfigs...)
79+
7580
return gateway.NewGateway(options, docker).Run(cmd.Context())
7681
},
7782
}

0 commit comments

Comments
 (0)