mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
podman machine ssh handling
add the key used in newly initialized machines to the user's known_hosts file. This ensures that golang will be able to ssh into the machine using podman-remote. Also, remove the /dev/null redirection for podman machine ssh's known_hosts file. resolves #15347 Signed-off-by: Charlie Doern <cdoern@redhat.com> Signed-off-by: cdoern <cbdoer23@g.holycross.edu>
This commit is contained in:
3
vendor/github.com/containers/common/libimage/platform.go
generated
vendored
3
vendor/github.com/containers/common/libimage/platform.go
generated
vendored
@ -63,6 +63,9 @@ func toPlatformString(os, arch, variant string) string {
|
||||
// * 2) a bool indicating whether architecture, os or variant were set (some callers need that to decide whether they need to throw an error)
|
||||
// * 3) a fatal error that occurred prior to check for matches (e.g., storage errors etc.)
|
||||
func (i *Image) matchesPlatform(ctx context.Context, os, arch, variant string) (error, bool, error) {
|
||||
if err := i.isCorrupted(""); err != nil {
|
||||
return err, false, nil
|
||||
}
|
||||
inspectInfo, err := i.inspectInfo(ctx)
|
||||
if err != nil {
|
||||
return nil, false, fmt.Errorf("inspecting image: %w", err)
|
||||
|
Reference in New Issue
Block a user