Docker Machine builds and joins nodes

  Manually installing Docker on each machine is painful for clustered servers, but there’s the Docker Machine, one of the three Dockers.   Address: https://www.cnblogs.com/CKExp/p/9552272.html   1. Introduction of Docker Machine   The tool has been around for quite some time, Docker Machine official introduction: https://docs.docker.com/v1.13/machine/overview/ in my understanding is a control department master landing.The next batch of people is like this graph, facing different servers, cloud, virtual machine, local host and so on. Bulk installation is done through Docker ...

Docker introduction

1. dockerinstall #dockerInstallation sudo apt-get install docker.io #Method of canceling common user sudo #1. Create docker group: sudo groupadd docker #2. Add the current user to group docker: sudo gpasswd -a ${USER} docker #3. Restart service: sudo service docker restart #4. Refresh docker members: newgrp - docker   2. image Find and download mirrors #Look up the mirror docker search centos docker search mysql #Download mirroring (lastest for mirror version, without specifying default latest) docker pull mysql:latest docker pull centos:latest Mirror operation 1 # List the mirroring ...

Usage of Python join

 jionIt’s like splicing a list or tuple with a string, and of course, splicing a string with a str The result is naturally a string. ex1: results:   Case application: When we read something out of a file, it’s often a list with many string elements, and if we want to convert it directly to str, we can use’. join () ex2: Note: the content of jointest.txt is {‘testcase’:’case1′,’testresults’:’Pass’}. fd.readlines()The result is [‘{‘testcase’:’case1′,’testresults’:’Pass’...

< one >Python data type

<One > variable, character encoding. 1:Declare variables:   #_*_coding:utf-8_*_ #__author__:"shikai" name="shikai"#Variable name: value of name variable: Shikai Define variable rules: ✪Variable names can only be any combination of letters, digits, or underscores. ✪The first character of a variable name cannot be a number. ✪Keyword cannot be declared as variable name. [‘and’, ‘as’, ‘assert’, ‘break’, ‘class’, ‘continue’, ‘def’, ‘del’, ‘elif’, ‘else’, ‘ex...

Detailed explanation of echo command

Basic command learning directory shellIn the script, echo shows the content with color display, echo display with color, and needs parameter -e. The format is as follows: echo -e "\033[Word background color; text color M string \033[0m " For example: echo -e "\033[41;36m something here \033[0m" 41 of the positions represent the background color, and 36 of the positions represent the colors of the characters. Note: 1、The word background color and text color are in English. 2、There is a m behind the text color. 3、There is no space before and after the string, and if so, the output is ...

Python basic tutorial [directory]

This blog is a basic knowledge of python, most of which are based on personal opinions from various sources. We welcome to learn together, supplement our knowledge and correct our mistakes. PythonFoundation [directory] PythonFoundation [first]: introduction and installation of Python PythonFoundation [Second]: Python appetizers PythonFoundation [Third articles]: variables and operators PythonFoundation [Fourth articles]: basic data type (numeric type) PythonFoundation [Fifth articles]: basic data type (character type) PythonFoundation [sixth articles]: basic data type (list) PythonFoundation...

Python Foundation

variable Variable type Variables can specify different data types, which can store integers, decimal or characters.         2.Variable assignment Each variable must be assigned before it is used, and the variable will be created after assignment. An equal sign (=) is used to assign variables. The equality sign (=) operator has a variable name on the left, and the equality sign (=) operator has a value stored in the variable on the right. For example: 1 # autor:guangqing xu 2 counter =100 #Assigned integer variables 3 miles = 1000.0 #float 4 name = "guangqing" #Character 5 print(cou...