[GH-ISSUE #263] goProxy not working instide an Docker container. #181

Closed
opened 2026-02-27 23:15:49 +03:00 by kerem · 2 comments
Owner

Originally created by @UrielCh on GitHub (Apr 13, 2019).
Original GitHub issue: https://github.com/snail007/goproxy/issues/263

Hi,

When I pack snail007/goproxy inside a docker container, it spot working, with no error message.

Dockerfile

FROM golang as builder
WORKDIR /root/
RUN FILE=proxy-$(go env GOOS)-$(go env GOARCH).tar.gz && \
    wget https://github.com/snail007/goproxy/releases/download/v7.3/$FILE -O $FILE && \
    tar -xvzf $FILE && \
    rm $FILE

FROM alpine
WORKDIR /root/
COPY --from=builder /root/* /root/
ENTRYPOINT [ "/root/proxy" ]

test it:

docker build -f Dockerfile  -t goproxy .
docker run -it --rm goproxy --help

I'ts work if I build snail007/goproxy from git, but it's look to be an old version.

Originally created by @UrielCh on GitHub (Apr 13, 2019). Original GitHub issue: https://github.com/snail007/goproxy/issues/263 Hi, When I pack snail007/goproxy inside a docker container, it spot working, with no error message. **Dockerfile** ```Dockerfile FROM golang as builder WORKDIR /root/ RUN FILE=proxy-$(go env GOOS)-$(go env GOARCH).tar.gz && \ wget https://github.com/snail007/goproxy/releases/download/v7.3/$FILE -O $FILE && \ tar -xvzf $FILE && \ rm $FILE FROM alpine WORKDIR /root/ COPY --from=builder /root/* /root/ ENTRYPOINT [ "/root/proxy" ] ``` test it: ```bash docker build -f Dockerfile -t goproxy . docker run -it --rm goproxy --help ``` I'ts work if I build snail007/goproxy from git, but it's look to be an old version.
kerem 2026-02-27 23:15:49 +03:00
  • closed this issue
  • added the
    wontfix
    label
Author
Owner

@snail007 commented on GitHub (Apr 14, 2019):

lastest version of goproxy can't running in docker

<!-- gh-comment-id:482907550 --> @snail007 commented on GitHub (Apr 14, 2019): lastest version of goproxy can't running in docker
Author
Owner

@UrielCh commented on GitHub (Apr 14, 2019):

Is that possible to download an old version ?

I have just migrate to docker. and I'm running everything inside containers.

<!-- gh-comment-id:482923286 --> @UrielCh commented on GitHub (Apr 14, 2019): Is that possible to download an old version ? I have just migrate to docker. and I'm running everything inside containers.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#181
No description provided.