Due to the installation of Dockerce at the time of downloading the official website of the long-term timeout situation, so in the installation of Docker need to change the download image to the domestic mirror library. So there's the Aliyun Mirror library.
Follow the steps in Aliyun when installing CentOS:
# step 1: Install some of the necessary system Tools sudo yum in
activation, the following can be measuredTry the account you just registered to work. To log in to the Docker hub, you can use the Docker login command. Such asHere to see that I was registered successfully, the user name can only be a combination of letters or arrays. Use Docker login below to verifyMy account:[#4 #[email protected] ~] $sudo
installation
Installation Docker is an operating system-level virtualization tool that automates the deployment of applications in containers
Install Docker
[root@linuxprobe~]# yum-y Install Docker [root@linuxprobe~]# systemctl start
Apiserver installs the deployment in a highly available manner. This article is attached to a "Kubernetes1.9 production environment high available practice –002-apiserver high Availability Installation Deployment".
In this article, we focus on how to install Docker in node nodes and the configuration of Docker.The configuration of the Kubernetes node is discussed in the next section.
This article in a lot o
in the Dockerfile to specify the software to install, without the Docker container shell directly install the software
To be honest, I also sometimes like to install software in the shell, and maybe you like to have all the software installed in the shell. But, in the end, it turns out that you still need to specify
options:
host1:docker_opts= "-b=br0–fixed-cidr= ' 10.211.55.64/26 '"
host2:docker_opts= "-b=br1–fixed-cidr= ' 10.211.55.128/26 '" Here, the bridge name used to specify the container connection
–fixed-cidr used to qualify the range of IP addresses assigned to a container
Save file and restart Docker service
$ sudo service docker restart Below, you can verify that:
1. Start a container on the two host,
--------------------------------------------------------------------------------------
Blog:http://blog.csdn.net/chinagissoft
QQ Group: 16403743
Purpose: Focus on the "gis+" cutting-edge technology research and exchange, the cloud computing technology, large data technology, container technology, IoT and GIS in-depth integration, explore the "gis+" technology and industry solutions
Reprint Note: The article is allowed to reprint, but must be linked to the source address, otherwise held legal res
only process for the container, so when the process is finished, the container will stop completely.
# Run the "echo" command in the container, output "Hello word"
$docker run image_name echo "Hello word"
# Interactive into the container
$docker run-i-T Image_na Me/bin/bash
# Install a new program in the container
$docke
machine.Docker Machine Create commandDepending on the Docker machine driver, the Create command does not do the same thing, but there are two things we are concerned about here:Docker-machine will perform the following actions on the host you specify:
Install Docker and configure it.
Generate a certificate to protect the security of the
machine.Docker Machine Create commandDepending on the Docker machine driver, the Create command does not do the same thing, but there are two things we are concerned about here:Docker-machine will perform the following actions on the host you specify:
Install Docker and configure it.
Generate a certificate to protect the security of the
very simple.Comparison of >docker and traditional virtualization technologiesCompared with traditional virtual machine technology, Docker resource occupies less, starts faster, and greatly facilitates the deployment and operation of the project.Docker is virtualization on the operating system level, reusing the local host's operating system, the traditional way is based on the hardware, virtual out of mult
command, so that the next time the mirror is used on another machine, it is only necessary to pull down from the warehouse.* Note: The concept of the Docker warehouse is similar to Git, and the registration server can be understood as a hosting service such as GitHub.
Docker container Installation
Redhat/centos must be above 6.6, or 7.x to install
The installation process on the Ubuntu 14.04 Server is the simplest and meets all the requirements for installing Docker, with the following setup script. If you are possible, please use the 14.04 version of Ubuntu to avoid digging holes for yourself. Installation
1
Curl-ssl http s://get.docker.io/ubuntu/| sudo sh test
1
sudo docker run-i-T Ubuntu/bin/bash
This step enters the container and runs an interact
Starting in March 2017, Docker began to be divided into Community versions and Enterprise Editions, Docker CE and Docker EE, and the way it was installed was obsolete in the original Ubuntu14.04 sudo apt-get install docker.io . Here, we will detail how to install the
RegistryImage repository --> the central repository for storing images, which can be seen as the scm for storing binary data
Docker Installation
Docker is easy to install and supports all mainstream operating systems, from Mac to Windows to various Linux distributions.For details, refer to docker installation.Common
, Docker container to Docker0 as a virtual bridge or call routing, all Docker containers are connected to this Docker0, by Docker0 to do routing, by the Docker0 Bridge to assign IP list the main Machine Bridge: yum-y install Bridge-utils/brctl Show uses a specific range of IPs: need to install bridge-utils ensure: 1.
How to deal with Docker in half a day and Docker in half a day
In fact, the volume ker is still very limited in real business scenarios. The Dockerfile script is not so easy to write, and some applications are not so well installed.
Don't talk nonsense. Teach you how to deal with docker for half a day!
Install depend
Docker InspectEstimated reading Time:2 minutes
Description
Return low-level information on Docker objects Usage
Docker inspect [OPTIONS] name|id [name|id ...]
Options
Name, Shorthand
Default
Description
--format, F
Format the output using the given go template
--size, S
False
Display Total Fil
containers, each of which is based on a Linux file system or volume management tool, with the command Docker info to view the currently used storage driver
The storage driver used by the native Docker daemon is overlay, and the back-end file system is Extfs, that is, the overlay storage driver works on the Extfs file system
Storage drivers can be set by –storage-driver=
When choosing a storage driver, you
do you put the debug window? With Xcode 2.0 's drawing remote debugging, all the powerful Xcode debugging features (such as data format programs, Fix, Continue) can be used on remote machines to debug applications. Using the encrypted connection with the remote debugging phase, Xcode can guarantee your data security.
Development
Xcode 4 allows you to develop iOS based ipad, IPhone, ipod touch device apps, so long as you have Mac OS X Snow Leopard 10.6 2 version of Mac OS OS, you can
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.