Rumah > Soal Jawab > teks badan
我是这样启动的registry
docker run -d -p 6000:5000 --restart=always --name registry -e STANDALONE=true -v /registry6000:/var/lib/registry registry:2
nginx这样转发的
server {
listen 80;
server_name i.com;
location / {
proxy_pass http://127.0.0.1:6000;
}
}
现在是直接i.com:6000可以推送,我想直接i.com也可以推送,结果提示
Error: Status 405 trying to push repository registry