kubernetes: error about unused endpoint argument

Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
Justin Chadwell 2022-06-28 10:03:50 +01:00
parent f360088ae7
commit 7ab3dc080b
1 changed files with 3 additions and 0 deletions

View File

@ -166,6 +166,9 @@ func runCreate(dockerCli command.Cli, in createOptions, args []string) error {
} else {
switch {
case driverName == "kubernetes":
if len(args) > 0 {
logrus.Warnf("kubernetes driver does not support endpoint args %q", args[0])
}
// naming endpoint to make --append works
ep = (&url.URL{
Scheme: driverName,