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