Tutorials, Free Online Tutorials, publishbookmarks provides tutorials and interview questions of all technology like java tutorial, android, java frameworks, javascript, ajax, core java, sql, python, php, c language etc. for beginners and professionals.
java Learning Diary 8: The implementation of the file upload tool class and the server send pictures to the client Sleepat
2023-03-16
Installation
see for details [see [link】 In a word, summarize many newcomers rightmirror imageand withcontainer“Confusion”:
download is a mirror, and the container runs.
Main command
command
usage case
parameters
run
Start/Create a mirror
-t: Binded pseudo -end -i: Standard input -d: Run in the background and will not stop immediately --name: Newly created container aliases --mount: Mount the host directory, there istype,source,readonlyattribute
-P
Random map port to the internal network port
-p
Specify the mapping port
docker run -it -p 80:80/tcp ...
ip:hostPort:containerPort: Map ip::containerPort
exec
Start a mirror of existence
diff
View change
docker diff webcontainer
commit
Paste the current container and solidify into a mirror image
–author
history
View container history
container
Related operation of the container
docker container start
start: Start restart: Restart stop: Stop
rm
Delete the container of the termination state
docker container rm ...
prune
Delete all containers that terminate the state
docker container prune
ps
View container
docker ps -a
-a: All containers -l: The container of surviving state