This series of articles will introduce Docker knowledge:
(1) Docker installation and basic usage
(2) Docker mirror
(3) Isolation of Docker containers-use Linux namespace isolate container's operating environment
(4) Isolation of Dock
search the Docker Hub for images tag tag an image into a repository save one or more images to a tar archive (streamed to STDOUT by default) history show the history of a Mirror Insp ECT get the details of the mirror container and the lifecycle operations it applies to: create Create a new container (creating a container) kill kill one or more running Containers Insp
ECT return low-level information on a container, image or task pause pause all proc
Basic knowledge and usage of docker, basic knowledge of dockerWhat is docker
DockerIs a container engine that provides a complete set of container solutions. It is the hottest open-source project in 2014, based on the Apache2.0 open source protocol, developed by Go language.What is container
Containers have a long history. Linux LXC and Solaris Zones are differe
reopen the Quick start terminal.Ii. Methods of UseAfter installing Docker and preparing the environment, open the Docker QuickStart terminal to start the Docker runtime environment.First, let's check to see if Docker is installed correctly with the following command:Docker infoIf this command is not found,
reopen the Quick start terminal.Ii. Methods of UseAfter installing Docker and preparing the environment, open the Docker QuickStart terminal to start the Docker runtime environment.First, let's check to see if Docker is installed correctly with the following command:Docker infoIf this command is not found,
Docker Container Memory Monitoring
Linux Memory Monitoring
To understand how the Docker container memory is computed, first understand the concepts associated with memory in Linux.
Use the free command to view current
Development Tool docker Usage Details, development tool docker detailsImages
Install domestic Images
Pull Image
Docker pull centos: latest
With the image, we can start and run a container Based on the image.Container docker commit
You know, when we run a container (if w
Docker usage NotesAuthorization: Hu JinlinEmail: [Email protected]1. Installing DockerCentOS6For CentOS6, you can use the EPEL library to install Docker with the following commandYum Install Http://mirrors.yun-idc.com/epel/6/i386/epel-release-6-8.noarch.rpmyum Install Docker-ioCentOS7The CENTOS7 system has
Docker:
Waiting for installation to complete, now we use the following command to start Docker:
Enable Docker when running system boot, command:
You might want to check the Docker version:
The Docker is now installed
>/home/save.tar# Use SCP to copy the Save.tar to machine B, then:$docker Load 8. Login to Registry server (login)# Login to Registry server; -E,--email= "" email; -P,--password= "" password; -U,--username= "" username$docker Login9. Publish image (push)# Publish a Docker image$docker Push New_image_name10. Build a con
DockerDocker containers can be run multiple times after a buildDcoker vs. virtual machines: Usually we are running Linux on the system, Linux virtualization on the systems, running various applications in the virtual host, and the virtual machines are completely isolated, while Docker is running Linux on the hardware level and doing Docker on the system. Engine, on the
. Net program memory usage Problems
1. Use the Performance Testing Tool dottrace 3.0 to calculate that the code in your program occupies a large amount of memory.
2. Forced garbage collection
3. Multiple dispose and close
4. Call timer every several seconds: setprocessworkingsetsize (process. getcurrentprocess (). Handle,-1,-1). For details, see the appendix.
5.
container, the commands are as follows
Docker run-dti--volumes-from webdata--name probebak-v/home/web_probebak:/backup CentOS tar zcvf/backup/web_probe . tar.gz/home/webcommand to Probebak the container that creates a private backup, mount the data volume container webdata, and then mount the server local directory/home/web_probebak on the backup container after the/backup directory container is started, the tar zcvf/backup is executed /web_proce.ta
View free memory/physical memory usage/remaining memory in a Linux system
There are many ways to view system memory, but the main is to use the top command and free command
How do you see the results when you execute the top command? Here is a description:
mem:666666k To
How to view memory usage in Linux and how to view memory usage in linux
In Linux, view CPU and memory usage:
During Linux system optimization, physical memory is the most important aspe
Problems with memory management in C Language heap, memory leakage, usage of wild pointers, illegal release of pointers, and memory management pointers
Problems with memory management in C Language heap, memory leakage,
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.