summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/compat/info.go
diff options
context:
space:
mode:
authorMilivoje Legenovic <m.legenovic@gmail.com>2020-11-19 09:55:36 +0100
committerMilivoje Legenovic <m.legenovic@gmail.com>2020-11-23 17:45:24 +0100
commit6f7b7060e8c4e8e8d59532eebb0ec12da2faefe9 (patch)
treec636654f50684be8ad2ddb5b68767f5666725a9f /pkg/api/handlers/compat/info.go
parent5292d5a7b85f9d2ae0b2a3734f8ae4baeba80f11 (diff)
downloadpodman-6f7b7060e8c4e8e8d59532eebb0ec12da2faefe9.tar.gz
podman-6f7b7060e8c4e8e8d59532eebb0ec12da2faefe9.tar.bz2
podman-6f7b7060e8c4e8e8d59532eebb0ec12da2faefe9.zip
[WIP] Docker compat API fixes
These are the first fixes that are needed for development environments like Eclipse or IntelliJ that have Docker plug-ins and use the Docker API to speak with container engine (#7857) Signed-off-by: Milivoje Legenovic <m.legenovic@gmail.com>
Diffstat (limited to 'pkg/api/handlers/compat/info.go')
-rw-r--r--pkg/api/handlers/compat/info.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/info.go b/pkg/api/handlers/compat/info.go
index 2bb165522..4b3a390f1 100644
--- a/pkg/api/handlers/compat/info.go
+++ b/pkg/api/handlers/compat/info.go
@@ -17,6 +17,7 @@ import (
"github.com/containers/podman/v2/pkg/api/handlers/utils"
"github.com/containers/podman/v2/pkg/rootless"
docker "github.com/docker/docker/api/types"
+ "github.com/docker/docker/api/types/registry"
"github.com/docker/docker/api/types/swarm"
"github.com/google/uuid"
"github.com/pkg/errors"
@@ -103,7 +104,7 @@ func GetInfo(w http.ResponseWriter, r *http.Request) {
PidsLimit: sysInfo.PidsLimit,
Plugins: docker.PluginsInfo{},
ProductLicense: "Apache-2.0",
- RegistryConfig: nil,
+ RegistryConfig: new(registry.ServiceConfig),
RuncCommit: docker.Commit{},
Runtimes: getRuntimes(configInfo),
SecurityOptions: getSecOpts(sysInfo),