In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces how to build a private server in docker, the content is very detailed, interested friends can refer to, hope to be helpful to you.
Steps
Search for images: docker search registry
Pull image: docker pull docker.io/registry
Verification: docker images view list of local images
Run: external port 5000 runs in the background by default, alias registry
Docker run-p5000 5000-d docker.io/registry-- name=registry
Run validation:
Dcoker ps
Telnet Server IP 5000
Image upload private server (take image huahan/wx as an example) (registryHost refers to the domain name or Ip address of the private server)
Play tag:docker tag registryHost:5000/huahan/wx
Push: docker push registryHost:5000/huahan/wx
Run docker run-p 8080-d registryHost:5000/huahan/wx on the deployment machine
Problems encountered
Encountered the following error when uploading private server or downloading image
Error response from daemon: Get https://RegistryHost:5000/v2/: http: server gave HTTP response to HTTPS client.
Reason: https transmission is enabled by default for private servers, and the above error will occur in the ordinary http request method.
Solution: change the docker configuration file (/ etc/docker/daemon.json) and add the following configuration
"insecure-registries":\ ["registryHost:5000"\]
On how to build a private server in docker to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.