mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-24 17:27:56 +00:00
add the ability for the podman remote client to use a configuration file which describes its connections. users can now define a connection the configuration and then call it by name like: podman-remote -c connection1 and the destination and user will be derived from the configuration file. if no -c is provided, we look for a connection in the configuration file designated as 'default'. If the configuration file has only one connection, it will be deemed the 'default'. Signed-off-by: baude <bbaude@redhat.com>
12 lines
238 B
Go
12 lines
238 B
Go
package remoteclientconfig
|
|
|
|
import (
|
|
"path/filepath"
|
|
|
|
"github.com/docker/docker/pkg/homedir"
|
|
)
|
|
|
|
func getConfigFilePath() string {
|
|
homeDir := homedir.Get()
|
|
return filepath.Join(homeDir, ".config", "containers", remoteConfigFileName)
|
|
}
|