1. Nexus configuration 1. Create a docker proxy Used to pull images from the external network warehouse to the local warehouse. Click "create Repository" and select docker (proxy) to create Fill in the parameters Click "create repository" to create 2. Create docker hosted Used to upload your own image to a private library Click "create Repository" and select docker (hosted) to create Fill in the parameters: Click "create repository" to create 3. Create a docker group Used to pull images to local use, you can download images from the external network and push images from local to private libraries Click "create Repository" and select docker (group) to create Used to download from the warehouse. You can download images from external warehouses and images uploaded by yourself. Configuration parameters Click "create repository" to create 4. Configure Docker Realm Configure Docker Bearer Token Realm to the right and click save. 2. Docker configuration Here we use http, not https, so we need to modify the docker configuration file Use the command vi /etc/docker/daemon.json to modify the docker configuration file Add the following parameters: the IP address is the IP address of the private library server, and the port is the port filled in when creating the docker group and docker hosted { “insecure-registries”: [“192.168.99.1:8088”, “192.168.99.1:8089”] } Then save it. After saving successfully, restart docker Use docker info to check whether the configuration is successful. If the following information is displayed, the configuration is successful. 3. Upload and download images 1. Download the image Use docker pull 192.168.99.1:8089/ubuntu to pull the image Because anonymous pull was checked in the previous configuration, you don't need to log in to pull. If you need to control permissions and prevent anonymous pull, uncheck the following configuration 2. Upload the image You can query the image just uploaded on nexus Use docker pull 192.168.99.1:8088/centlocal:1.0 to pull the uploaded image The above article uses nexus as a private library to proxy docker to upload and download image operations. This is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. You may also be interested in:
|
<<: 10 performance configuration items that need to be adjusted after installing MySQL
>>: The submit event of the form does not respond
mysql create table sql statement Common SQL state...
Table of contents 1. What does shallow copy mean?...
Table of contents Class Component Functional Comp...
Preface I accidentally discovered that the half-h...
Authorization is to grant certain permissions to ...
The previous article introduced a detailed exampl...
This article introduces the installation of Windo...
Preface Let me share with you how I deployed a Sp...
We often see a cool effect where the mouse hovers...
Table of contents 1. Understanding Databases 1.1 ...
Heart Attributes opacity: .999 creates a stacking...
Some time ago, during development, I encountered ...
1. Source of the problem A friend @水米田 asked me a...
Nginx hides version number In a production enviro...
1. Introduction When a web project is published o...