mirror of
https://github.com/containers/podman.git
synced 2025-12-04 04:09:40 +08:00
Add service endpoint
add service endpoint for the new API. Also supports the varlink implementation. Signed-off-by: baude <bbaude@redhat.com> Refactor to allow developer more control of API server * Add api.NewServerWithSettings() to create an API server with custom settings * Add api.ListenUnix() to create a UDS net.Listener and setup UDS Signed-off-by: Jhon Honce <jhonce@redhat.com> Signed-off-by: baude <bbaude@redhat.com> More service completion Add podman service command that allows users to run either a RESTful or varlink protocol API service. Addition of docs and RESTful listening. Signed-off-by: baude <bbaude@redhat.com> Signed-off-by: Brent Baude <bbaude@redhat.com>
This commit is contained in:
@@ -57,7 +57,7 @@ func (r RemoteRuntime) RemoteEndpoint() (remoteEndpoint *Endpoint, err error) {
|
||||
// last resort is to make a socket connection with the default varlink address for root user
|
||||
} else {
|
||||
logrus.Debug("creating a varlink address based default root address")
|
||||
remoteEndpoint, err = newSocketConnection(DefaultAddress)
|
||||
remoteEndpoint, err = newSocketConnection(DefaultVarlinkAddress)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user