-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
Hello @codekitchen ! Thank you for this project; I've been using this repository consistently over the last three years, and I'm trying to troubleshoot some recent issues I'm experiencing with Docker Desktop on macOS. I tried to build the Docker image with the following command
docker build -t dinghy-http-proxy:local .
, and I'm seeing this error:
=> ERROR [builder 5/6] RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go get -v github.com/fsouza/go-dockerclient 16.0s
=> [stage-1 2/7] RUN apk upgrade --no-cache && apk add --no-cache --virtual=run-deps su-exec curl dnsmasq && rm -rf /tmp/* /var/cache/apk/* /var/tmp/* 1.6s
------
> [builder 5/6] RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go get -v github.com/fsouza/go-dockerclient:
6.867 go: downloading github.com/fsouza/go-dockerclient v1.12.1
9.457 go: downloading github.com/Microsoft/go-winio v0.6.2
9.459 go: downloading github.com/docker/docker v27.5.1+incompatible
9.463 go: downloading github.com/docker/go-units v0.5.0
9.465 go: downloading github.com/moby/patternmatcher v0.6.0
9.575 go: downloading golang.org/x/sys v0.30.0
10.96 go: downloading github.com/pkg/errors v0.9.1
10.96 go: downloading github.com/opencontainers/image-spec v1.1.0-rc2.0.20221005185240-3a7f492d3f1b
10.96 go: downloading github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6
10.96 go: downloading github.com/morikuni/aec v1.0.0
10.96 go: downloading github.com/gogo/protobuf v1.3.2
10.96 go: downloading github.com/docker/go-connections v0.4.0
10.96 go: downloading github.com/moby/docker-image-spec v1.3.1
10.96 go: downloading github.com/containerd/log v0.1.0
10.96 go: downloading github.com/klauspost/compress v1.15.9
10.96 go: downloading github.com/moby/sys/sequential v0.5.0
11.00 go: downloading github.com/moby/sys/userns v0.1.0
11.00 go: downloading github.com/moby/sys/user v0.1.0
11.01 go: downloading github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1
11.02 go: downloading github.com/sirupsen/logrus v1.9.3
11.06 go: downloading github.com/opencontainers/go-digest v1.0.0
14.84 github.com/fsouza/go-dockerclient imports
14.84 github.com/docker/docker/api/types/swarm imports
14.84 github.com/docker/docker/api/types/network imports
14.84 net/netip: package net/netip is not in GOROOT (/usr/local/go/src/net/netip)
14.95 go: downloading github.com/docker/docker v1.13.1
------
4 warnings found (use docker --debug to expand):
- FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 32)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 33)
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 34)
Dockerfile:5
--------------------
3 | COPY join-networks.go .
4 | COPY go.mod .
5 | >>> RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go get -v github.com/fsouza/go-dockerclient
6 | RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -v -o join-networks
7 |
--------------------
ERROR: failed to solve: process "/bin/sh -c GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go get -v github.com/fsouza/go-dockerclient" did not complete successfully: exit code: 1
If I upgrade the Go image in the Dockerfile to 1.23, I'm now able to build it. Should we update the Go image, as I see 1.16 is a bit dated?
Also, if curious, using Docker for mac version 4.42.1
Metadata
Metadata
Assignees
Labels
No labels