-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add parameter for when podman driver is running remote #12577
Comments
Currently this is intermixed with rootless, so might need to be fixed in cooperation with #12460 (for #8719) // Quickly returns an error code if service is not running
cmd := exec.CommandContext(ctx, oci.Podman, "version", "--format", "{{.Server.Version}}")
// Run with sudo on linux (local), otherwise podman-remote (as podman)
if runtime.GOOS == "linux" {
cmd = exec.CommandContext(ctx, "sudo", "-k", "-n", oci.Podman, "version", "--format", "{{.Version}}")
cmd.Env = append(os.Environ(), "LANG=C", "LC_ALL=C") // sudo is localized
} So this affects both
EDIT: Also breaks with --cgroup-manager if ociBin == Podman && runtime.GOOS == "linux" {
args = append(args, "--cgroup-manager", "cgroupfs")
} |
When running remote, "rootless" is not so important to the command (it will never use But it should be possible, to query the engine if it is running as root or as user (it is in the "rootless" "rootless: true" docker root
docker rootless
podman root
podman rootless
|
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
Currently the remote flag of
podman
is hardcoded, to always disabled on Linux (and always enabled on Mac and Win)We should make it a driver boolean, so that it is possible to test
podman machine
also on regular developer machines.Sadly, podman requires a flag
--remote
or even a special binarypodman-remote
. Otherwise it will still run locally...On other platforms, this flag is "always on" and the binary has been renamed/replaced. So this makes Linux "special"
Note: for the Docker driver, remote is always true. You can't run
docker
locally, you always need adockerd
running.Hopefully the Podman behaviour will be fixed* in version 4.0, but minikube still needs to support Podman version 3 as well.
* see containers/podman#11196
Needed for: Issue #8003
The text was updated successfully, but these errors were encountered: