Skip to content

How i can enable HTTP_PROXY in the docker container? #132

@lanbugs

Description

@lanbugs

Hi,

I search for the most easiest way to enforce the docker container to use proxy servers to do git clone etc.

I tried to build a own container based on catthehacker/ubuntu:act-22.04 with the following config:

`
FROM catthehacker/ubuntu:act-22.04

ENV http_proxy=http://10.10.10.10:3128
ENV https_proxy=http://10.10.10.10:3128

RUN git config --global http.proxy http://10.10.10.10:3128
RUN git config --global https.proxy http://10.10.10.10:3128

RUN npm config set proxy http://10.10.10.10:3128
RUN npm config set https-proxy http://10.10.10.10:3128
`

I build this machine and adviced my act runner to take my own machine. But still problems when he tries to clone any external actions.

If i start the new container with docker run ENV variables present and git clone etc. works perfectly, i don`t know where i am turned wrong at the moment.

Thanks & Greetings

Max

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions