Current location - Health Preservation Learning Network - Healthy weight loss - Understand images and containers, and you have mastered 80% of Docker.
Understand images and containers, and you have mastered 80% of Docker.
Namespace: isolate pid, net, ipc, mnt and uts.

Control Group: Restrict resources

Federated file system: layering of containers and images

Build from Dockerfile

Docker provides a configuration file, Dockerfile, just like the tramp file used by bloggers before. You can define a docker image image through Dockerfile and build this dockerfile to build an ImageImage image.

Extract from the registry

Similar to the github repository, you can pull files from the repository through git clone, or push files to the repository, and then docker pull the image you want from docker hub.

Third, the Container.

Note: In the previous step, vim was installed in the container, and the container was exited, so the container can be seen in the exited container. Now, you need to submit this container to a mirror image, which is based on the centos8 basic image, but it is different from the centos8 basic image in that vim is installed.

The above method of creating an image is not recommended, because if the image is published, the user will not know how the image is constructed when he gets the image, and it is very likely that unsafe things will be published in the image, that is, the image will definitely be unsafe.

Building a mirror image through dockerfile is similar to the mirror image generated by the commit container, but it is recommended to use dockerfile to build a mirror image, so that you only need to share this file with others, and others can build the same mirror image as you through the dockerfile you shared.

Finally, I have compiled some learning materials of software testing, which should be very helpful for friends who study software testing, so as to better sort out each module.

The private message I need is obtained for free through the keyword 555. Note that the key word is: 555.

Full set of software testing automatic testing teaching video

300G tutorial materials download video tutorial +PPT+ project source code.

Automatic testing of full set of software for large-scale factory surface warping