Alow not a DinD mode of operation
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
2023-07-28 18:24:39 +02:00
parent b4057e26e5
commit 836c1329fa
6 changed files with 199 additions and 36 deletions

View File

@@ -155,6 +155,11 @@ func main() {
Usage: "don't start the docker daemon",
EnvVar: "PLUGIN_DAEMON_OFF",
},
cli.BoolFlag{
Name: "not.hidden.socket",
Usage: "in case of daemon.off use unix:///run/hidden_docker.sock instead of unix:///run/docker.sock",
EnvVar: "PLUGIN_NOT_HIDDEN_SOCKET",
},
}
if err := app.Run(os.Args); err != nil {
@@ -200,6 +205,7 @@ func run(c *cli.Context) error {
DNSSearch: c.StringSlice("daemon.dns-search"),
MTU: c.String("daemon.mtu"),
Experimental: c.Bool("daemon.experimental"),
NotHiddenSocket: c.Bool("not.hidden.socket"),
},
}
return plugin.Exec()