Sometimes it is inconvenient to use a public repository such as Docker Hub, and the company's private images are not pushed to the docker hub for business security. You can create a local repository for private use. Similar to git and maven, it saves the server bandwidth for downloading and uploading images.What is docker registry?Docker Registry consists of three parts: index, registry, and registry client.You can regard Index as an external implementation for login, authentication, storage
Newer image for Registry:latest
[ROOT@LIUMIAOCN ~]#
Docker Run creates a private warehouse
The best practices mentioned in Registry's introduction suggest that registry be run as a container.
[ROOT@LIUMIAOCN ~]# Docker run-d-P 5000:5000 Registry
badf822f34751979e4f7fc513b40177f941b227c7385245ad2f391737587b117
[root@liumiaocn ~]# Docker PS
CONTAINER ID IMAGE COMMAND C
unordered order, only 1-M is returned and sorted by month, for example, if JAN is smaller than FEB and so on,-B will ignore all the blank parts in front of each line. from the first visible character, compare 7. the k option in sort will discuss the preparation materials: the first domain is the company name, the second domain is the number of people in the company, and the third domain is the average salary of employees. (Except for the company name, others are all written into the comment _ ^
dbdata, DB1, and DB2), the data volume is not automatically deleted. If you want to delete a data volume, you must use the Docker rm-v command to specify that the associated container is deleted at the same time when you delete the last container that also mounts it. This allows users to upgrade and move data volumes between containers.3. External Access ContainerSome network applications can be run in a container, and to allow external access to these applications, you can specify port mapping
; evaperf fnh xx. yy. ZZ. dd administratorVerifying access...Host username accessible----------------------------------XX. yy. ZZ. dd administrator YesThe purpose of this command is to connect to SMA and prepare to generate friendly name, because when there is no friendly name, what you see on the generated report is not vdisk01, vdisk02, but a lengthy wwid, which seems to be exhausted.Where:FNH is the parameter for evaperf to generate friendly name.XX. yy. ZZ. DD is the IP address of your SMA s
is the number of people in the company, and the third domain is the average salary of employees. (Except for the company name, others are all written into the comment _ ^) # cat netcompany.txt google 110 5000 baidu 100 5000 3000 guge 50 100 sohu 4500 I want this file to be sorted alphabetically by the company, that is, sort by the first domain # sort-t''-k1 netcompany.txt baidu 100
Sony (Japan) 10 thousand/month, only for graduate students China headquarters of South Korea's Samsung Electronics 0.25 million/year French Somm software, with an annual salary of 0.2 million RMB/year, working in Europe Cisco (Cisco) 15000/month, only for graduate students Intel 13000/month IBM 5000/month Siemens Germany 8000/month Tibet Unicom's 1 million year (must be 8 years old), but the altitude sickness is too hard. The monthly salary o
performance of MySQL, Redis and other I/O operations); BMW 330i (PHP): The following abbreviation (PHP) Version:5.2.17; Official performance: 8220 Req/sec (HTTP request); Modification situation: BMW Modified Acschnitzer provides: nginx+fastcgi; Note: Perhaps my PHP configuration is not the optimization, should also be faster, some of the following test configuration is based on the article on the Internet configuration, if the master to match, the estimated PHP performance can also improve ab
I. Docker use of the network
1. External access to the Docker container, you can specify port mappings by-p or-p
When the-p tag is used, Docker maps a 49000~49900 port randomly to an open network port on the internal container
--->docker run-d-p training/webapp python app.py
--->docker ps-l view port mappings
root@izrj92o440hd7iwmo9iwfgz:~# Docker run-d-p Training/webapp python app.py8a65b840a7882d76746baba48c98227b03be2218aa0af262f8180d0dee83c361root@izrj92o440hd7iwmo9iwfgz:~#CONTAINER ID IMAGE
1. Download the repository Image
Docker pull Registry
2. Create a private repository container-D indicates that the background is startedDocker run-D-P 5000: 5000-V/opt/data/Registry:/var/lib/Registry
3. Remove port 5000 from the FirewallFirewall-cmd -- zone = public -- add-Port = 5000/tcp -- Permanent
4. Verify that
stopfifichmod 755 /etc/keepalived/check_haproxy.sh
Edit the configuration file of Haproxy:
vi /etc/haproxy/haproxy.cfg
The configuration file is as follows:
global log /dev/log local0 info log /dev/log local0 notice maxconn 4096 user root group root daemondefaults log global maxconn 10000 contimeout 5000 clitimeout 3600000 srvtimeout 3600000 option redispatch r
"James" to "Li Xiaoming ";
2. Delete the first three rows
3. Display 5-10 rows
4. Delete the row containing "exclude"
5. display all rows with birthdays between Nov and Dec
6. All rows starting with a surname Zhang, marked with the front side ***
7. Use "trial staff" to replace the line containing "trial"
8. The birthday invented by Liu was 1986/11/11
9. Delete all blank rows
10. write a script to insert the first line into the Personnel File, delete all salaries ending with 500, display the Fi
1. View Docker version information# docker Versionclient:version:18.03.0-ce API version:1.37 Go version:go1.9.4 Git commit:0520e24 built:wed Mar 21 23:09:1 5 2018 Os/arch:linux/amd64 Experimental:false orchestrator:swarmserver:engine:version:18.03.0-ce API version:1.37 (mi Nimum version 1.12) Go version:go1.9.4 Git commit:0520e24 built:wed Mar 23:13:03 2018 Os/arch:linux/amd64 Experime Ntal:false2. Build a local private warehouse#mkdir-p/opt/data/registry#sudodockerrun-d-p5000:
Docker Warehouse Warehouses are places where image files are centrally stored. Sometimes the warehouse and the warehouse registration server (Registry) are confused, not strictly differentiated. In fact, the warehouse registration server often holds multiple warehouses, each of which contains multiple mirrors, each with a different label (tag).a Docker Registry can contain multiple warehouses ( Repository ); Each warehouse can contain multiple labels ( Tag ), and each label corresponds to a mir
/ Libstdc++.so.6 "for
file in $bak _list
does
cp-r $file/data/gcc-bak/
Done
Then, create the following file in the/etc/ld.so.conf.d/directory
Cat gmp-mpfr-mpc.conf
/usr/local/mpfr-2.4.2/lib/
/usr/local/mpc-0.8.1/lib/
/usr/local/gmp-4.3.2/lib /
Then extract the/tmp/lib.tar.gz into the/usr/local directory and perform the Ldconfig update cache.Try yum to install rpm
Yum Install gcc-4.8.4-1.x86_64.rpm
Find that too much reliance is missing
Finally, the dependency forcing update is ignored
into the Personnel File, delete all salaries ending with 500, display the File content, turn the phone number and birthday upside down, and add the end at the end of the File.
11. extract the name of the row containing "trial" and replace it with "trial User:" + name
Data content:
[Houchangren @ ebsdi-23260-oozie data] $ cat persons.txt James: 010-68239343: I am a manager: 1988/01/10: 5000 dawn: 010-68239343: I am a manager: 1988/08/10:
that directory, copy and paste the following docker-compose.yml contentto your docker-compose.yml file.The content is roughly meant to run the Nginx container based on "nginx:1.9" image, exposing the container 443 port to host 443 port. and mount the nginx/directory under the current directory as a containerThe/ETC/NGINX/CONFIG.D directory.Nginx link to registry container. Create registry container based on Registry:2 image, expose container 5000 por
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.