proxy_admin_free
proxy_admin_free copied to clipboard
基于golang镜像制作proxy-admin镜像失败
proxy-admin 镜像制作文件
FROM goproxy
RUN curl -L https://mirrors.host900.com/snail007/proxy_admin_free/install_auto.sh | bash
EXPOSE 32080
ENTRYPOINT ["proxy-admin", "start"]
构建日志
[root@aliyun proxy-admin]# docker build .
Sending build context to Docker daemon 2.048kB
Step 1/4 : FROM goproxy
---> 96b1420cece2
Step 2/4 : RUN curl -L https://mirrors.host900.com/snail007/proxy_admin_free/install_auto.sh | bash
---> Running in 3e07a7fceb6a
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1427 100 1427 0 0 1684 0 --:--:-- --:--:-- --:--:-- 1682
>>> downloading ... proxy-admin_linux-amd64.tar.gz
--2020-09-22 09:06:32-- http://myip.ipip.net/
Resolving myip.ipip.net (myip.ipip.net)... 117.23.61.238, 118.212.233.220
Connecting to myip.ipip.net (myip.ipip.net)|117.23.61.238|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 109 [text/plain]
Saving to: 'STDOUT'
0K 100% 12.2M=0s
2020-09-22 09:06:32 (12.2 MB/s) - written to stdout [109/109]
--2020-09-22 09:06:32-- https://mirrors.host900.com/snail007/proxy_admin_free/proxy-admin_linux-amd64.tar.gz
Resolving mirrors.host900.com (mirrors.host900.com)... 1.0.0.1
Connecting to mirrors.host900.com (mirrors.host900.com)|1.0.0.1|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 20475149 (20M) [application/gzip]
Saving to: 'proxy-admin_linux-amd64.tar.gz'
19950K .......... .......... .......... .......... ..... 100% 43.1M=2.7s
2020-09-22 09:06:36 (7.19 MB/s) - 'proxy-admin_linux-amd64.tar.gz' saved [20475149/20475149]
>>> installing ...
bash: line 36: systemctl: command not found
>>> install done, thanks for using snail007/proxy-admin
>>> install path /usr/local/bin/proxy-admin
>>> configuration path /etc/gpa
>>> uninstall just exec : proxy-admin uninstall
>>> please visit : http://YOUR_IP:32080/ username: root, password: 123
>>> How to using? Please visit : https://snail007.github.io/goproxy/manual/zh/
Removing intermediate container 3e07a7fceb6a
---> 598277def104
Step 3/4 : EXPOSE 32080
---> Running in f44f79bc32be
Removing intermediate container f44f79bc32be
---> b110c920d06b
Step 4/4 : ENTRYPOINT ["proxy-admin", "start"]
---> Running in e6239a0b9b43
Removing intermediate container e6239a0b9b43
---> 2bb82bc09427
Successfully built 2bb82bc09427
运行日志
[root@aliyun proxy-admin]# docker run --rm -it --entrypoint bash proxy-admin
root@511be74fac2f:/go# proxy-admin
2020/09/22 09:05:52 Unix syslog delivery error
root@511be74fac2f:/go# exit
goproxy镜像制作文件
FROM golang
RUN curl -L https://mirrors.host900.com/snail007/goproxy/install_auto.sh | bash
EXPOSE 33080
ENTRYPOINT ["proxy", "http"]
没有docker技术支持