Discover composer private repository, include the articles, news, trends, analysis and practical advice about composer private repository on alibabacloud.com
Many official versions of Linux images can be downloaded directly from the official repository (Public repositories. Considering the security and speed, we may want to set up a private repositories in our own LAN to store our own images. docker-registry is the tool we need.
git clone git clone https://github.com/docker/docker-registry.gitcd docker-registry/configcp config_sample.yml config.yml
When you use
Guide
Git version control system requires a server side, and on GitHub to create a private git server-side warehouse that touches the charges, so here we use Dropbox free space to take a look at the tutorial to build a private git repository on Dropbox.
One, create a remote repository folder (. git suff
Create BitBucket's private maven repository and upload aar to BitBucket's maven repositoryReprint please mark the original address: http://blog.csdn.net/lsyz0021/article/details/52065404When we use the development of Android studio, we can use the compile "" command very conveniently to use someone else's third-party AAR libraryFor example, when we quote okhttp, we can do it in Gradle:dependencies { comp
Install docker and private repository on centos71. initialize the networkAfter centos7 is installed, yum prompts that the domain name cannot be resolved. view the local network, ifconfig is unavailable, and ip commands in centos7 proxy ifconfig.Ip addr. Only the local loopback address is displayed.Cd/etc/sysconfig/network-scripts, ViewFile corresponding to the NIC nameOnboot is noChange to yes. After centos
How to deal with Docker private repository Registry and dockerregistry in minutes
1. What is the Docker private repository Registry?
The official Docker hub is a good place to manage public images. We can find the image we want and push our own images. However, sometimes our servers cannot access the Internet, or you d
Environment preparation
Use two machines, one to do Docker private warehouse, one to do Docker image submission
Make sure Docker is installed on both machines and start the Docker service
The name of the Docker private warehouse is: Docker-registry, IP: 192.168.1.101
The Docker image is submitted with the name: Docker-app, IP 192.168.1.102
Installation of
How to build a private docker repository using CentOSPreface
Because most of the image download websites are abroad, Chinese users often encounter slow downloading speeds when downloading images. In addition, when Docker is applied to the production environment, whether the downloaded Docker image is secure or not.
Building a private Docker Registry in a product
On a Linux server
The first step is to create an account that is specific to Git's warehouse, which is also easy to manage. You can refer to the Linux New User command for this article.
#新建一个git用户组sudo groupadd git#新建一个git用户, create a directory, and prevent shell logins from being added to the GIT user group
sudo useradd git-m-s/sbin/nologin-d/home/git-g git
The second step is to create a new git warehouse, called Git bare repository, which is the
I. Download Registry#yum install-y python-devel libevent-devel python-pip gcc xz-devel#python-pip install Docker-registry Two. Perform the following actions on all Docker hosts #vi/etc/sysconfig/docker set other_args= '--insecure-registry 192.168.24.205:5000 ' #service Docker restart three. Open the firewall and start the container for the warehouse #iptables-a input-p TCP--dport 5000-j accept#service iptables save#docker run-d-P 500 0:5000-v/opt/data/registry:/tmp/registry registry Four. Tag an
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.