Dockerfile


FROM Ubuntu: 18.04
ENV MY_PROXY_URL="http://{username}:{password}@{proxy_ip}:{proxy_port}/"
ENV HTTP_PROXY=$MY_PROXY_URL \
     HTTPS_PROXY=$MY_PROXY_URL \
     FTP_PROXY=$MY_PROXY_URL \
     http_proxy=$MY_PROXY_URL \
     https_proxy=$MY_PROXY_URL \
     ftp_proxy=$MY_PROXY_URL

-{username}: proxy server username
-{password}: proxy server password
-{proxy_ip}: Proxy server IP address
-{proxy_port}: proxy server port

Generate mirror

docker build -t elephdev-proxy-docker.

Start the container

docker run -it --rm --name elephdev-proxy-test elephdev-proxy-docker /bin/bash

Test whether the agent is successful

curl cip.cc

image.png

Likes(0)

Comment list count 0 Comments

No Comments

WeChat Self-Service

WeChat Consult

TaoBao

support@elephdev.com

发表
评论
Go
Top