dongrouyuan5685 2019-06-21 11:05
浏览 86

如何在启动容器时获取golang docker客户端的其余响应代码?

When I do

curl -X POST -v --unix-socket /var/run/docker.sock http://docker/containers/container_name/start

I got response codes like 204, 304, 404, 502

How to get the same response codes from the golang docker client? As of now, startcontainer function in golang is only returning an error string

dockerclient function:

ContainerStart(ctx context.Context, containerID string, options dockTypes.ContainerStartOptions) error
  • 写回答

0条回答 默认 最新

    报告相同问题?