-
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
Using podman-remote instead of pypodman, for podman-machine #4138
Comments
Yes those seem very reasonable, open a PR for them. |
Here is the improved usage: $ eval $(podman-machine env)
$ podman-remote version
Client:
Version: 1.6.1-dev
RemoteAPI Version: 1
Go Version: go1.12.10
OS/Arch: linux/amd64
Service:
Version: 1.6.0-dev
RemoteAPI Version: 1
Go Version: go1.12.10
OS/Arch: linux/amd64 |
very cool. Would this work on a MAC? |
It should (any Unix), but come to think of it I forgot to pass the parameters to my Windows implementation... There is also a long-standing request to write a more "native" Mac driver. Currently the included options are still VirtualBox and QEMU, but there are some plugins. Have tested an older version with VirtualBox 5 and with "qemu-system-x86_64" on OS X. The Windows users are reporting some issues when using the bridge, maybe DOS things ? |
/kind feature
Note: It's hard to use
podman-remote
instead of the previouspypodman
,due to the lack of environment variables (some of them missing entirelly).
Here is the current configuration:
Trying to map these into parameters, but there is no param for the
-i
flag.Normally SSH is transferred over a local port, rather than using the VM's IP.
The current workaround is to use the PODMAN_VARLINK_BRIDGE,
but unfortunately that doesn't work for running interactive sessions with:
Would it be possible to make
podman-remote
compatible with the above variables ?(And add a configuration option, that would pass the correct -i to the ssh command)
One more complication is the hardcoded locations of the commands on the remote end.
For instance, when running tiny core linux then additional software is under
/usr/local
.sh: /usr/bin/varlink: not found
Couldn't we just let the remote system find them in the PATH ? Workaround was runtime symlinks.
Eventually, once all the various above issues are worked around - it does work OK in the end...
I copied my ssh key to the /root/.ssh/authorized_keys, due to the lack of -i parameter.
It also warned me that the server at random-port had changed its host key: (Again)
That is where the PODMAN_IGNORE_HOSTS comes in handy, until host keys are fixed.
It just causes the connection to use the regular workarounds for ignoring any host keys:
-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
The text was updated successfully, but these errors were encountered: