Creation of docker image and dockerfile

1, Creation of docker image 1. How to create a mirror There are three ways to create an image: Based on an existing image, based on a local template, and based on a Dockerfile. 2. Create from an existing mirror (1) Start an image and modify it in the container docker run -it --name jc1 centos:7 bash #Create a container first yum instal ...

Added by gacon on Tue, 18 Jan 2022 02:14:55 +0200

Multi-threaded operation of log files on Linux

1. Learning goals and plans? 2. Learning vi, grep awk, sed and some Linux commands 1. grep: Searches for files in the specified directory and manipulates the results, suitable for simply finding matching text 1.grep after test.log > res.log: in test. Find the row with the after keyword in the log and save it in res.log 2.find-name'* ...

Added by dougp23 on Tue, 18 Jan 2022 00:28:35 +0200

shell concise tutorial

**Read only variable * * readonly var **Delete variable * * unset var Variable type: Local variables are defined in scripts or commands and are only valid in the current shell instance Environment variable a variable that can be accessed by all programs Shell variable is a variable specially set by the shell program Single quotatio ...

Added by partypete on Mon, 17 Jan 2022 19:21:45 +0200

vue packaging and publishing to Linux

I vue front end project packaging Developing projects using vscode In the config directory of prod.env The IP address and port number of our back-end server are configured in the. JS file. Because this is in the actual deployment, the project must be deployed in the generation environment. As shown in the figure: prod.env.js Index. In the con ...

Added by el_timm on Mon, 17 Jan 2022 18:32:55 +0200

Realizing FTP single file upload and download with libcurl under linux

Libcurl is a function library that provides data transmission functions. Its main function is to connect different types of servers through different protocols. At present, libcurl mainly supports http, https, ftp, gopher, telnet, dict, file, ldap and other protocols and various SSL security authentication. In libcurl based programs, the librar ...

Added by Q on Mon, 17 Jan 2022 15:13:55 +0200

Ansible is introduced to installation

Ansible (automatic operation and maintenance tool) Automatic operation and maintenance Automatic operation and maintenance refers to the automation of a large number of repetitive daily work in operation and maintenance, and the work performed by yourself or more people is transformed into automatic operation with the help of platforms or too ...

Added by robertvideo on Mon, 17 Jan 2022 14:40:12 +0200

Linux user manual (CentOS)

Common commands 1. System command sync #Synchronize data from memory to hard disk shutdown -h now #Turn it off immediately reboot #restart hostnamectl set-hostname kali #Set the host name to kali 2. Directory operation cd / #Open root directory cd ~ #Open current user directory cd ./ #current directory cd .. #Return to the previous dir ...

Added by Keith Scott on Mon, 17 Jan 2022 14:36:47 +0200

Alternative command summary

Reprint: https://blog.csdn.net/chenxizhan1995/article/details/102990830?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-6.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Edefault-6.control Install Python 3 on CentOS. The default Python is pyt ...

Added by Hitch54 on Mon, 17 Jan 2022 13:42:56 +0200

WSL2 uses Docker to run ManageIQ (including Systemctl installation, script configuration agent and Docker port mapping)

WSL2 uses Docker to run ManageIQ (including Systemctl installation, script configuration agent and Docker port mapping) Use the image provided by the ManageIQ project on the Docker Hub to test the ManageIQ running in the Docker container. It solves some problems in using WSL2: starting with systemd, accessing the host windows agent in WSL2, in ...

Added by jarriola on Mon, 17 Jan 2022 13:29:47 +0200

i.MX6ULL learning notes -- driver function initialization

brief introduction From the perspective of Linux architecture, the kernel system has regarded the driver as an independent sub module. Therefore, the driver module can load (insmod) and unload (remmod) when the kernel system is running. From a functional point of view, the driver module undertakes the function of mapping system function c ...

Added by ghjr on Mon, 17 Jan 2022 13:15:50 +0200