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
Post comment 取消回复