1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 21:33:18 +01:00

chore: adds error for agent

This commit is contained in:
Amir Raminfar
2025-02-10 14:19:05 -08:00
parent 13da2a4222
commit 1d4698d77a

View File

@@ -40,6 +40,9 @@ func main() {
if subcommand != nil {
switch subcommand.(type) {
case *cli.AgentCmd:
if args.Mode != "server" {
log.Fatal().Msg("Dozzle agent command is only available in server mode")
}
client, err := docker.NewLocalClient(args.Hostname)
if err != nil {
log.Fatal().Err(err).Msg("Could not create docker client")