Docker PW Registry Introduction and use Docker-Compose install Registry

Scenes

Compose installed on Docker-Compose Introduction and Ubuntu Server:

https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100902301

Docker Compose basic use - use Compose to start Tomcat as an example:

https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100904080

Docker Compose deployment project into the container - based mall project of Tomcat and mysql (with source code and sql download):

https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100941366

In the above basic operation realize Compose based on the realization of the installation using Docker Compose Register.

Registry

The official Docker Hub is a place for the management of public image, we can find the required image above or to push up their image.

However, if the server can not or do not want to mirror network on the public Internet, then you will need a few Docker Registry, which can be used to store and manage their own image.

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

Open dockerhub, search Registry

 

 

Click on the first official image

 

 

Into new docker / registry directory / usr / local, and new docker-compose.yml

 

 

yml Code:

version: '3.1'
services:
  registry:
    image: registry
    restart: always
    container_name: registry
    ports:
      - 5000:5000
    volumes:
      - /usr/local/docker/registry/data:/var/lib/registry

 

使用Docker-Compose以守护态运行Registry

docker-compose up -d

 

 

打开浏览器,输入 ip:5000

因为是空的,所以啥都没返回,但是能建立连接,说明安装成功。

 

 

可以查看日志是否有报错。

docker logs registry

 

Guess you like

Origin www.cnblogs.com/badaoliumangqizhi/p/11600894.html