Docker's daily operation and maintenance method

Question 3: How to start the container and how to configure the parameters

The parameter configuration of starting the container is a relatively complicated process, which needs to be configured differently according to our needs. I will give an example of how to operate mysql startup configuration?

Question 2: Daily operation commands

1. Load the image

docker load -i xxx.tar

2. Save the image to tar locally

docker save -o File name to be saved Image ID to be saved

3. Copy files to the container

docker cp ./xx.tar ID:/root

4. Copy from the container to the host host

docker cp ID:/xxx.tar  ./

Question 1: Daily update and upgrade! ! ! !

Solution 1: Directly create the mirror image in the company, and then replace the entire mirror image;

Solution 2: Change the program in the mirror directly. The disadvantage is that the mirror package will be large after the replacement is completed; it can be optimized later...

Guess you like

Origin blog.csdn.net/qq_30264689/article/details/112261115