In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
In the previous article, we described some commands and operations commonly used in Docker. In this article, we will build our own private library to store and distribute images. If you are not familiar with Docker basic commands, please refer to "Docker Common commands and Operations".
Environment introduction:
Operating system: Centos6.5
Software: Docker1.7.1
Server side: 192.168.1.10
Client: 192.168.1.20
Start the server-side docker service
Since the server needs ca authentication when pushing the image to the private database,-- insecure-registry is used here to ignore authentication.
Docker-d-insecure-registry 192.168.1.10 5000 &
Pull the official registry image on the server side
Docker pull registry
Pull the basic image from the official
Docker pull centos
Give a new label to the image
Docker tag centos 192.168.1.10:5000/centos
Start the container
Docker run-d-- name registry-p 5000 rig 5000-v / opt/registry:/var/lib/registry registry
Check whether the private library has been started
Docker ps-a
Push the basic image to the private database
Docker push 192.168.1.10:5000/centos
Connect the private library with the client
-- start the client docker service
Because the client needs to use ca for authentication when connecting to the private library, it is the same as starting on the server side.
Docker-d-insecure-registry 192.168.1.10 5000 &
Pull the official image
Docker pull nginx
Give a new label to the image
Docker tag centos 192.168.1.10:5000/nginx
Push image to private database
Docker push 192.168.1.10:5000/nginx
Pull the image from the private database
Docker pull 192.168.1.10:5000/centos
View all client images
Docker p_w_picpaths
View the images that exist in the private library
Curl http://192.168.1.10:5000/v2/_catalog
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.