1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
| docker info
docker version
docker --help
docker images
docker rmi [镜像ID] [镜像ID] ...
docker pull redis:7.0.14
docker ps
docker ps -a
docker top [容器ID或容器名]
docker logs -f [容器ID或容器名]
docker run -it --name [容器名] [镜像名]
docker start/restart/stop/rm [容器ID或容器名]
docker exec -it [容器ID或容器名] /bin/bash
exit
docker update --restart always [容器ID或容器名]
docker save -o <保存的文件名.tar> <镜像名>
docker load -i <保存的文件名.tar> 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
|