From 5666100c2ee30a004f27ffd159b30ccbdab37ba5 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Wed, 17 Jul 2024 12:01:12 -0400 Subject: [PATCH] Remove references and checks for --gpus No way to test this unless running on a nvidia platform. Signed-off-by: Daniel J Walsh --- cmd/podman/containers/run.go | 3 --- hack/xref-docker-options | 1 - 2 files changed, 4 deletions(-) diff --git a/cmd/podman/containers/run.go b/cmd/podman/containers/run.go index 46c4a3a66d..be688c21f5 100644 --- a/cmd/podman/containers/run.go +++ b/cmd/podman/containers/run.go @@ -247,8 +247,5 @@ func run(cmd *cobra.Command, args []string) error { } } } - if cmd.Flag("gpus").Changed { - logrus.Info("--gpus is a Docker specific option and is a NOOP") - } return nil } diff --git a/hack/xref-docker-options b/hack/xref-docker-options index d3a37d5853..133d678f36 100755 --- a/hack/xref-docker-options +++ b/hack/xref-docker-options @@ -14,7 +14,6 @@ declare -a hidden=( "docker -D" # Hidden "docker -H" # Hidden - "docker .* --gpus" # Not likely to be implemented "docker .* --isolation" # Only for Windows containers "docker .* --kernel-memory" # CGroupsV1 only, present but hidden "docker .* --link" # Deprecated in docker