In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to build a private warehouse in docker. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Use the official image to start the repository
Docker run-d-p 5000 docker run-- restart=always-- name registry-v / home/docker/registry/:/var/lib/registry registry:2
After docker 1.3, docker pull image defaults to https. You can modify the startup entry (if you directly use ip port, change 'docker.registry' to ip port):
-- insecure-registry docker.registry
Nginx configuration
Server {listen 80 default; server_name _; root html; return 404;} server {listen 80; server_name docker.registry; access_log / usr/local/nginx/logs/registry.access.log main; error_log / usr/local/nginx/logs/registry.error.log; location / {# auth_basic "registry" Proxy_pass http://127.0.0.1:5000; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Authorization ""; client_body_buffer_size 128k; proxy_connect_timeout 90; proxy_send_timeout 90 Proxy_read_timeout 90; proxy_buffer_size 8k; proxy_buffers 4 32k; proxy_busy_buffers_size 64k; proxy_temp_file_write_size 64k;} location / v2 / {# auth_basic "Registry realm"; # add_header 'Docker-Distribution-Api-Version'' registry/2.0' always Proxy_pass http://127.0.0.1:5000;# proxy_set_header Host\ $http_host; # required for docker client's sake# proxy_set_header X-Real-IP\ $remote_addr; # pass on real client's IP# proxy_set_header X-Forwarded-For\ $proxy_add_x_forwarded_for # proxy_set_header X-Forwarded-Proto $scheme; proxy_read_timeout 900;}} this is the end of the article on "how to build a private warehouse in docker". I hope the above content can be helpful to you so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.