Aliyun How to create an instance using mirrors
Mirroring is primarily used to create an ECS instance. You can increase your productivity by creating instances of the same configuration environment, based on existing instances, easily. The operating system, installed applications, and data are automatically copied to the new instance.
When using mirroring, you need to consider the following conditions for mirroring:
Location: Only
Docker Mirrors:
First of all, we know that the operating system is divided into kernel and user space, compared to Linux, the kernel boot, will mount the root file system to provide user space support.
and Docker mirror image, it is equivalent to a root file system, but this file system is a little special, provide the container runtime needs of the program, library, resources, configuration and other documents.
However, it contains a number of Run-ti
A package is a collection of software installation files, configuration files, and metadata that can be deployed on a virtual machine instance. In the last article in this series, the author describes three mechanisms for capturing custom mirrors by using ICCT to create mirrors, and for manually adding dependencies between mirrors and packages by updating the sem
Docker creates mirrors based on containers that already have mirrors* Docker run Centos/bin/bash first causes the mirror to open the container.* Docker start DE8 launches the specified mirror container. De8 is the ID of the image and can be shortened to 3 bits.* After running Docker exec-it De8/bin/bash, enter into the specified container, DE8 is the ID, can be abbreviated to 3-bit. We make some changes, su
1. Docker image Imagethe cornerstone of the vesselCascade read-only file systemFederated Loading (union Mount)2. Image storage Address/var/lib/docker3. Mirroring operationlist Mirrorsmirroring labels and warehousesView ImageRemove Mirror1) List Mirrors$docker images [optsions] [REPOSITORY]-A, --all=false Show all mirrors -F, --filter=[] filter conditions when displayed --no-trunc = False does not use trun
Open the package is used, do not look at the code.
If you are in a hurry to use a mirror that I built directly, start by Configuring the mirror source to see about Sdkman
sdkman! is the tool for managing parallel versions of multiple software development kits on most UNIX based systems,The official website is
http://sdkman.io/
Sdkman installation is simple.
$ curl-s "Https://get.sdkman.io" | Bash
However, when the network is limited, it is not suitable for automatic installation, at this time
using Supermin to make CentOS Docker mirrors
Install the supermin on the CentOS7
$ sudo yum install-y supermin*
Create MIRROR (The following command needs to run with root)
# supermin5-v--prepare bash coreutils-o supermin.d
# supermin5-v--build--format chroot supermin.d-o
# echo 7 > Appliance.d/etc/yum/vars/releasever
# tar--numeric-owner-cpf centos-7.tar-c appliance.d.
# Cat Centos-7.tar | Docker import-kongxx/centos-7
Viewing
Installed with the Yum source, but within the FTP service, Yum Source does not refer to, and will report this error. Workaround: Find the Yum source 650) this.width=650; "title=" image "style=" border-left-0px; border-right-width:0px; Background-image:none; border-bottom-width:0px; padding-top:0px; padding-left:0px; margin:0px; padding-right:0px; border-top-width:0px "border=" 0 "alt=" image "src=" Http://s3.51cto.com/wyfs02/M00/89/30/wKiom1gKs7aAX2DsAAApUr0n_ K4326.png "width=" 244 "height=" "/
; Boot restartAfter restarting you will find that the file has been returned, I have tested several times, which is used in the case of the whole network crashIf you're routing everything OK, you just want to upgrade iOS as followsRouter#copy Tftp:flasRouter#copy Tftp:flash:Address or name of remote host []? 1.1.1.2 TFTP-SERVER-IP AddressSource filename []? Enter iOS image name returnLast Reload reboot completeI've got a pain in my hand,!!!!!!!!!.Interested in the group of Communication Technolo
Here WinPE mirroring refers to a CD-ROM mirror that can directly boot the system and run a WinPE. There are two types of such mirrors.
A, WinPE system files directly into the mirror. When such a system is started, the system disk (typically x:) is a disc image. So when you remove the disc, there is a problem with the system running.
B, WinPE system files into an SDI image. This way after the system boot WinPE in memory, the system disk is in the memor
Since the operating system will be upgraded from CentOS6.4 to CentOS7, first try the CentOS7. Start Container Service
Systemctl Start Docker.serviceDownload CentOS7 Mirrors
[root@wxtest1607 ~]# Docker Pull centos:7.2.1511 [root@wxtest1607 lixr]# Docker Images-REPOSITORY TAG IMAGE ID CREATED SIZE
centos 7.2.1511 686672a1d0cc 7 weeks ago 194.6 MBDownload
Yum has a problem with the install today and found a way to find a workable solution.Fastestmirror is an accelerator plugin for Yum, here is the plugin tip message is that the plugin is not available.Can not use the first do not use Bai, disabled off, first Yum and then again.1. Modify the plugin's configuration file# vi/etc/yum/pluginconf.d/fastestmirror.confEnabled = 1//changed from 1 to 0, disable the plugin...............................2. Modify the Yum configuration file# vi/etc/yum.conf..
The solution is to use the RubyGems image of Taobao, which is a complete rubygems.org mirror, you can replace the official version, Sync frequency is currently 15 minutes to ensure that as far as possible with the official service synchronization.
How to use
Gem
Remove the old source and use the new feed instead.
Copy Code code as follows:
$ gem Sources--remove https://rubygems.org/
$ gem sources-a http://ruby.taobao.org/
$ gem sources-l
Current SOURCES * * *
http:/
Aliyun How to share mirrors
You can share your own custom mirrors with other users, who can query the shared mirror list of this account with other accounts through the admin console or the ECS API. Shared users can create ECS instances and replace system disks using mirrors shared by other accounts.
Before sharing your account with other accounts, verify tha
Create Dockerfile (take MySQL 5.7 for example)
The official Dockerfile can be downloaded from the Docker hub, as well as docker-entrypoint.sh
It's too long, but it's on the Docker hub. To create a mirror
Go to the Dockerfile directory and execute the following command:
Docker build-t MySQL.
Note the following point, indicated in the current directory.
Once created, you can see the mirror just created by Docker images.
Here you can see that two mirrors
1, Loaded plugins:fastestmirror determining fastest mirrors It means that fastestmirror can not be used, Fastestmirror is an accelerated plug-in yum, I also did not carefully understand, may be the system does not support or lack of build caused. The workaround is to disable the plugin by: root@www.ctohome.com]# vi/etc/yum/pluginconf.d/fastestmirror.conf [main] enabled=0//change 1 to 0 Verbose=0 socket_timeout=3 hostfilepath=/var/cache/yum/timedhosts.
Docker Gitbook:Https://yeasy.gitbooks.io/docker_practice/content/index.html
Learning Docker process, with each step of the operation, resulting in a large number of stop the work of the container, want to quickly delete multiple containers, looked at the next Docker RM--help, plus StackOverflow saw someone else's question and answer, summed up 2 kinds of bulk Delete container method. Docker stop $ (Docker Ps-qa) #停止所有容器 Docker RM $ (Docker ps-qa) # Delete all stopped containers Docker Ps-qa | Xa
Problem Background
Two different mirrors, recorded as a,b mirrors, a mirror generates two containers a1,a2,b mirror generation b1,b2. Communication is done using the ZMQ component in a epgm manner, requiring an address binding first. Indicates that the service joins a multicast address and subscribes to the multicast message.
Problem performance:
1, directly in the A1,A2 run this piece of code, no problem
Reason for replacement
The official mirror of Docker's visit to the country has been slow as a snail. In order to quickly access Docker official image will be configured with three-side accelerator, the current common three-party accelerator: NetEase, USTC, Daocloud, Aliyun.
Now Docker has launched a mirror-acceleration service for the Chinese region. With Docker official image acceleration, domestic users are able to access the most popular Docker mirrors
Basic concepts of Docker mirrors, containers, and warehouses
Mirror
A 1.Docker mirror is a read-only template.
For example, a mirror can contain a complete CentOS operating system environment in which only httpd or other applications required by the user are installed.
2. Mirroring can be used to create Docker containers.
3.Docker provides a simple mechanism to create mirrors or to update existing
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.