Skip to content
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

Support environment variable for choosing podman-remote connection #7623

Closed
afbjorklund opened this issue Sep 13, 2020 · 3 comments
Closed
Labels
kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@afbjorklund
Copy link
Contributor

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)

/kind feature

From #7602 (comment)

Description

Currently there is an environment variable for the --url, but nothing for the --connection

Flags:
  -c, --connection string         Connection to use for remote Podman service
  -r, --remote                    Access remote Podman service (default false)
      --url string                URL to access Podman service (CONTAINER_HOST) (default "unix:/run/user/1000/podman/podman.sock")

There could a $CONTAINER_NAME for setting the connection name,
similar to the current $CONTAINER_HOST for setting entire url ?

Currently it requires modifying the config, which is shared.

  podman system connection [command]

Available Commands:
  default     Set named destination as default

Or always using the --connection parameter, which is tedious.

Steps to reproduce the issue:

Describe the results you received:

Describe the results you expected:

Additional information you deem important (e.g. issue happens only occasionally):

Output of podman version:

Version:      2.0.6
API Version:  1
Go Version:   go1.14.2
Built:        Thu Jan  1 01:00:00 1970
OS/Arch:      linux/amd64

Output of podman info --debug:

(paste your output here)

Package info (e.g. output of rpm -q podman or apt list podman):

Listing... Done
podman/unknown 2.0.6~2 amd64 [upgradable from: 2.0.6~1]
podman/unknown 2.0.6~2 arm64
podman/unknown 2.0.6~2 armhf
podman/unknown 2.0.6~2 s390x

Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?

Yes/No

Additional environment details (AWS, VirtualBox, physical, etc.):

@openshift-ci-robot openshift-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Sep 13, 2020
@afbjorklund
Copy link
Contributor Author

The workaround is to continue to use CONTAINER_HOST and CONTAINER_SSHKEY.

@rhatdan
Copy link
Member

rhatdan commented Sep 15, 2020

I would think CONTAINER_CONNECTION would be better then CONTAINER_NAME

@afbjorklund
Copy link
Contributor Author

I was just going with CONTAINER_HOST vs CONTAINER_URL, but you are probably right.

The use case would be running in two shells at the same, towards different virtual machines.

@jwhonce jwhonce closed this as completed Sep 29, 2020
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 22, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

4 participants