configuration file# Customize location of Docker binary (especially for development testing).#DOCKER="/usr/local/bin/docker"# Use DOCKER_OPTS to modify the daemon startup options.#DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"# If you need Docker to use an HTTP proxy, it can also be specified here.export http_proxy="http://xxxx:port"# This is also a handy place to tweak where Docker's temporary files go.#export TMPDIR="/mnt/bigdrive/docker-tmp"DOCKER_OPTS="--insecure-registry dl.dockerpool.com:
:
layerinfo:inmemory
filesystem:
rootdirectory:/var/lib/registry
Delete:
enabled:true
http:
Addr: 5000
The warehouse service needs to be restarted after the modification is complete.
$ sudo systemctl restart Docker-distribution.service
Use
First look at what mirrors are in the warehouse
$ python registry.py-r http://localhost:5000
To test the need, we first create a f
/CONFIG.D directory. Nginx link to registry container. Creates a registry container based on Registry:2 image, exposes container 5000 ports to host 5000 ports, uses environment variables to indicate the root directory using/data, and mounts the data/folder under the current directory to the/data directory of the container. All also need to create nginx and data folders in the current directory:
mkdir Data
reprinted from: https://blog.csdn.net/bxzhu/article/details/73253032
1. Environmental Preparedness
Linux version: Centos7
Docker version: 17.05.0-ce
2. Deploying registry
Get the image of registry using the Docker pull command
[Plain] View plain copy # sudo docker pull registry:2.1.1
Use Docker run to launch a container using the downloaded registry image
[Plain] View plain copy # sudo docker run-d-P 5000:5000
different, they are behind Nat; otherwise, they are behind Nat. To detect different types of NAT, the STUN Protocol defines message attributes and requires the server to have different actions, such as using different IP addresses and ports when sending responses, or changing ports. The STUN Protocol may be effective for Nat, but it is powerless for the firewall, because the firewall may not open the UDP port.
Nat category
Stun roughly divides NAT into four types: Full cone, restricted cone, po
specifies the domain
-- Help: displays help.
-- Version: displays the version information.
Keys [root @ Jesse ~] # Cat c.txt
7 July
8 August
9 September
10 October
11 November
12 December
1 January
2 February
3 March
4 L
5 May
6 June
[Root @ Jesse ~] # Sort-c c.txt
Sort: c.txt: 4: disorder: 10 October // it indicates that the data is not arranged in a certain order. if nothing is displayed, it indicates that the data is classified in a certain
Mysql transactions, concurrency issues, lock mechanisms, mysql transactions1. What is a transaction?
A transaction is a combination of one or more database operation statements. It has four features: ACID.
Atomicity
Isolation: transactions are independent of each other and do not interfere with each other.
Consistency: After the database changes its status correctly, the consistency constraints of the database are not damaged.
Persistence: the transaction commit result, which is permanently stor
When the Docker Registry V2 comes out, it's really good to be simple and practical, but when you change port 5000 to something else, or use a domain name binding, it's a mistake. Here is a detailed record of the process of your own experience.First, the installation of Docker Registry V2 (distribution).Here I chose to use the official provided image to install, perhaps you will feel that it is easy, dismissive. However, for an OPS person, the attentio
different regions, there must be a solution to achieve interconnection between the two, so the atm lane technology came into being. By using LANE, the ATM network can simulate the work of the LAN, so that multiple LAN can be connected to the ATM network without any modification. ATM is responsible for bridging, which is completely transparent and seamless for users. It seems to work in a pure Ethernet environment, as shown in figure 2.
The configuration process of LANE is complicated, and the
layer configuration and defense, but it also simplifies load balancing and SSL settings. And more importantly, the reverse proxy server can be well integrated with the existing infrastructure.3. Hello NginxWe also try to play the Nginx based on Docker.//拉取Nginx镜像$ docker pull nginx//启动Nginx容器$ docker run -d -p 8080:80 --name hellonginx nginxAbove we started in the background running a nginx container named Hellonginx, whose port is mapped to the host's 8080 port, we can now be directly accessed
seconds ago up 2 seconds 0.0.0.0:49155- >5000/tcp Nostalgic_morseYou can also display the host port with the specified container port bindings, using the-P tag.
$ sudo docker run-d-p 5000:5000 training/webapp python app.pyWe see that this is not a good idea because it binds us only to a container that can be specified on this particular port.
There are som
1. What is a transactionA transaction is a combination of one or more database operation statements with acid,4 characteristics.Atomicity: Either all succeeds or all is undoneIsolation: Transactions are independent from one another and are not interfering with each otherConsistency: The database consistency constraint is not compromised after the database has changed state correctlyPersistence: The commit result of the transaction, which persists in the database2. What will happen to the concurr
MySQL transaction concurrency problem, lock mechanism1. What is a transactionA transaction is a combination of one or more database operation statements with acid,4 characteristics.Atomicity: Either all succeeds or all is undoneIsolation: Transactions are independent from one another and are not interfering with each otherConsistency: The database consistency constraint is not compromised after the database has changed state correctlyPersistence: The commit result of the transaction, which persi
1. What is a transactionA transaction is a combination of one or more database operation statements with acid,4 characteristics.Atomicity: Either all succeeds or all is undoneIsolation: Transactions are independent from one another and are not interfering with each otherConsistency: The database consistency constraint is not compromised after the database has changed state correctlyPersistence: The commit result of the transaction, which persists in the database2. What will happen to the concurr
container, and after this command is executed, Docker takes the following actions in sequence:
A. Check if the Hello-world image is installedB. If not installed, download the image from the Docker Remote warehouse (Docker Hub)C. Load the image into the container and run it.
Create Doker PHP container, enable PHP development environment
The Docker hub has an image of the individual developer, as well as an official image of the company or organization, you can use the image of the Docker hub, or
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.