-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Non-obvious extra argument to new podman --remote #6598
Comments
Maybe I was a bit early, and that I was under the impression that everything was supposed to use |
Side note: fixed the missing timestamp for server in PR #6599 |
Well we plan on supporting both. Podman-remote is a bit thinner the regular podman, but there is no reason that regular podman can not get the job done on a remote machine. I am not sure how well this is working yet, since most people are just testing with podman-remote. |
I guess we will have same problem anyway, to educate Linux users to add Unless we want everyone (including Mac and Win users) to always add the extra flag. So basically we will still have these different tabs in the docs, with slightly different content:
Which means that we might as well continue to use Then we don't have to divide it further, to split between 1.6 and 2.0 podman clients. The main addition is to export both PODMAN_VARLINK_BRIDGE and CONTAINER_*. And figure out how to do the access to the
|
On 6/16/20 14:17, Anders Björklund wrote:
I guess we will have same problem anyway, to educate Linux users to
add |--remote|.
Unless we want everyone (including Mac and Win users) to always add
the extra flag.
Which I assume that we don't want to do, for the same reason of
renaming the binary.
No podman-remote the `podman` installed on windows/MAC will have this
enabled by default. On Linux we might still ship a podman-remote
command, but in containers.conf there is a "remote" option, that could
be turned to true, which would switch traditional `podman` to run as
--remote by default. Then if you wanted to run podman locally you would
have to execute podman --remote=false.
…
So basically we will still have these different tabs in the docs, with
slightly different content:
|{{% tabs %}} {{% tab "Linux" %}} podman-remote help {{% pageinfo
color="info" %}} Note: On Linux the remote client is called
"podman-remote", while the local program is called "podman". {{%
/pageinfo %}} {{% /tab %}} {{% tab "macOS" %}} podman help {{%
pageinfo color="info" %}} Note: On macOS the remote client is called
"podman", since there is no local "podman" program available. {{%
/pageinfo %}} {{% /tab %}} {{% tab "Windows" %}} podman help {{%
pageinfo color="info" %}} Note: On Windows the remote client is called
"podman", since there is no local "podman" program available. {{%
/pageinfo %}} {{% /tab %}} {{% /tabs %}} |
Which means that we might as well continue to use |podman-remote| instead.
Then we don't have to divide it further, to split between 1.6 and 2.0
podman clients.
They can just run podman-remote, and it will run varlink (v1) or rest
(v2) as preferred.
The main addition is to export *both* PODMAN_VARLINK_BRIDGE and
CONTAINER_*.
And figure out how to do the access to the |podman.sock|, when not
using |sudo|...
The obvious approaches being allowing ssh as root - or adding a
"podman" group.
|SocketMode=0660|
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#6598 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPIPQ5ZWW5Q536WQUI5M2DRW6ZKRANCNFSM4N5BUT6Q>.
|
I suppose a config file could also be used, right now it is using shell variables... Haven't really understood yet if $CONTAINER_HOST overrides running locally, |
Upgraded to v2.0.0, but now it shows an error instead: podman2 --remote podman version
Error: Get http://d/v1.0.0/libpod../../../_ping: dial unix ///run/user/1000/podman/podman.sock: connect: no such file or directory There is a Setting $CONTAINER_HOST explicitly and adding the extra fake argument sems to be working. But non-obvious ? export CONTAINER_HOST=unix:/run/user/1000/podman/podman.sock
podman2 --remote podman version
Client:
Version: 2.0.0
API Version: 1
Go Version: go1.13.8
Git Commit: eec482cae3289ecaad45c602629657da7062ce9c
Built: Sun Jun 21 09:58:54 2020
OS/Arch: linux/amd64
Server:
Version: 2.0.0
API Version: 0
Go Version: go1.13.8
Git Commit: eec482cae3289ecaad45c602629657da7062ce9c
Built: Sun Jun 21 09:58:54 2020
OS/Arch: linux/amd64 Using Maybe remove this misleading "flag" statement from the release notes ? Or add some more info on how to use it ?
https://github.com/containers/libpod/releases/tag/v2.0.0 |
Not sure what actually happened behind the scenes, but my $CONTAINER_HOST had nothing to do with it. Now it is back to the original:
Without any extra workarounds. So it more like the systemctl --user is unstable, sometimes it times out and sometimes it doesn't start. |
Also, using the
|
* --remote, --url and --identity are now anchored to podman command. Subcommands should no longer have issues * TraverseChildren now set to V1 expectations * Latest flag now has helper function. Now has consistent usage. * IsRemote() uses cobra parser to determin if --remote is given * Moved validation functions from parser pkg to validate pkg * Fixes containers#6598 Fixes containers#6704 Signed-off-by: Jhon Honce <[email protected]>
Now it seems like podman --remote works, but that podman-remote stopped working ? |
They are both working for me? |
It was running locally for me with 2.0.1 but will a new issue if I can reproduce |
@rhatdan
Therefore it is still using "remoteclient" build tag, instead of the new "remote" |
@lsm5 Poke - looks like we need a build update for the OBS podman-remote packages |
* --remote, --url and --identity are now anchored to podman command. Subcommands should no longer have issues * TraverseChildren now set to V1 expectations * Latest flag now has helper function. Now has consistent usage. * IsRemote() uses cobra parser to determin if --remote is given * Moved validation functions from parser pkg to validate pkg * Fixes containers#6598 Fixes containers#6704 Signed-off-by: Jhon Honce <[email protected]> <MH: Fixed import issues> Signed-off-by: Matt Heon <[email protected]>
current (V1)
systemctl --user start io.podman.socket
export PODMAN_VARLINK_ADDRESS=unix:/run/user/1000/podman/io.podman
development (V2)
systemctl --user start podman.socket
# hacked the podman.service unit to run /usr/local/bin/podman2 instead of /usr/bin/podman
So it seems that I have to give an extra argument, after the
-r
?Seems like the actual value doesn't really matter (foo, bar, etc)
The text was updated successfully, but these errors were encountered: