Scenes
Docker PW Registry Introduction and use Docker-Compose install Registry:
https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/101567542
In the above configuration, and its Web UI client after installation Registry.
Note:
Blog:
https://blog.csdn.net/badao_liumang_qizhi
public concern number of
programs overbearing ape
acquisition-related programming e-books, tutorials and push for free download.
achieve
Configure the client so that it can identify the Registry server
Into the client's / etc / docker directory
Edit daemon.json
Add the following code:
"insecure-registries": ["192.168.286.135:5000"]
Note:
: The [intermediate position is a space.
"" Configuration which is the Registry of ip and port number.
Add the following positions:
Restart Docker Service
systemctl restart docker
No error is normal.
Check whether success
docker info
The following message appears the configuration was successful
Upload Mirror
Tomcat, for example to test mirroring upload function.
First, the client pull tomcat
docker pull tomcat
Then mark the corresponding tomcat server is the ip: port / client name
docker tag tomcat 192.168.208.135:5000/tomcat
Then use the full ip and port services such as push to the end.
docker push 192.168.208.135:5000/tomcat
After a successful push to open above the blog corresponding to the configuration Registry ip: port / v2 / _catalog
http://192.168.208.135:5000/v2/_catalog
We have been able to see the success of the push tomcat image.
View mirror is above all, to see if it is designated mirror
http://192.168.208.135:5000/v2/tomcat/tags/list
If you want to tag specifies version
docker tag tomcat 192.168.208.135:5000/tomcat:8.5.32
docker push 192.168.208.135:5000/tomcat:8.5.32
Until then refresh
Configuring Web UI
PW after a successful installation can use the command-line tool docker for registry operation.
Here you can use the UI image management tool.
docker-registry-frontend
Use docker-compose to install and run.
First, the original registry service stopped
docker-compose down
The front end of the template is added at docker-compose.yml server under the original / usr / local / docker / registry configuration file code
docker-compose.yml configured as follows:
version: '3.1' services: registry: image: registry restart: always container_name: registry ports: - 5000:5000 volumes: - /usr/local/docker/registry/data:/var/lib/registry frontend: image: konradkleine/docker-registry-frontend:v2 ports: - 8080:80 volumes: - ./certs/frontend.crt:/etc/apache2/server.crt:ro - ./certs/frontend.key:/etc/apache2/server.key:ro environment: - ENV_DOCKER_REGISTRY_HOST=192.168.208.135 - ENV_DOCKER_REGISTRY_PORT=5000
After saving restart
Check operation of container
docker ps
Then point your browser to:
ip:8080
After entering PW