Whether to install Docker:
Docker Version
start Docker:
Service Docker Start
View Your machine can be mirrored:
Docker ImagesRF Royalty Free
View Mirror running:
Docker PS the -l
end mirror are running:
Docker STOP imagesId / name
Docker enter specific process:
1, Docker PS - "get process ID
2, Docker Inspect -f {} {} process ID .State.Pid -" live nsenter need ID
. 3, the second step obtained nsenter --target id --mount --uts - -ipc --net --pid -> enter specific process
file docker with the process of copy
1, docker ps - "get the process of the above mentioned id
2, docker cp need to copy the files to process from the first step of the process id: required the path to copy
the files in the copy process out of
the process from the first step docker cp id: to be copied in the process need to copy the file path to the host file
restart the process in Docker:
Docker Docker restart process name
mysql:
docker run --name mysql --privileged = true -e MYSQL_ROOT_PASSWORD = root -p 3306: 3306 -d mysql: 5.7
multi-instance: (name and host ports, require differentiation)
Docker RUN --name mysql7 --privileged = true -e MYSQL_ROOT_PASSWORD = root -p 3307 : 3306 -d mysql: 5.7
docker command (I used)
Guess you like
Origin www.cnblogs.com/chen--biao/p/11611774.html
Recommended
Ranking