Docker
Docker常用命令,命令大全_docker服务命令_生椰打铁的博客-CSDN博客
文章目录
常用命令由个人学习总结。命令大全翻译自官方最新(2021.05.19)文档,如有错误,请参阅官网。感谢纠正!
Docker官方帮助文档
docker常用命令
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
| docker info docker version
docker 命令 --help
docker images docker search docker pull docker rmi
docker run 镜像id docker ps 列出所有运行的容器 docker container list docker rm 容器id docker rm -f $(docker ps -aq) docker ps -a -q|xargs docker rm
docker start 容器id docker restart 容器id docker stop 容器id docker kill 容器id
exit ctrl +P +Q
docker run -d 镜像名 docker logs docker top 容器id docker inspect 容器id docker exec docker attach docker cp 容器id:容器内路径 主机目的路径
|
docker命令大全
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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
| docker attach docker build docker builder docker builder prune docker checkpoint docker checkpoint create docker checkpoint ls docker checkpoint rm docker commit docker config docker config create docker config inspect docker config ls docker config rm docker container docker container prune docker context docker context create docker context export docker context import docker context inspect docker context ls docker context rm docker context update docker context use docker cp docker create docker diff docker events docker exec docker export docker history docker image docker image inspect docker image ls docker image prune docker image rm docker images docker import docker info docker inspect docker kill docker load docker login docker logout docker logs docker manifest docker manifest annotate docker manifest create docker manifest inspect docker manifest push docker manifest rm docker network docker network connect docker network create docker network disconnect docker network inspect docker network ls docker network prune docker network rm docker node docker node demote docker node inspect docker node ls docker node promote docker node ps docker node rm docker node update docker pause docker plugin docker plugin create docker plugin disable docker plugin enable docker plugin inspect docker plugin install docker plugin ls docker plugin push docker plugin rm docker plugin set docker plugin upgrade docker port docker ps docker pull docker push docker rename docker restart docker rm docker rmi docker run docker save docker search docker secret docker secret create docker secret inspect docker secret ls docker secret rm docker service docker service create docker service inspect docker service logs docker service ls docker service ps docker service rm docker service rollback docker service scale docker service update docker stack docker stack deploy docker stack ls docker stack ps docker stack rm docker stack services docker start docker stats docker stop docker swarm docker swarm ca docker swarm init docker swarm join docker swarm join-token docker swarm leave docker swarm unlock docker swarm unlock-key docker swarm update docker system docker system df docker system events docker system info docker system prune docker tag docker top docker trust docker trust inspect docker trust key docker trust key generate docker trust key load docker trust revoke docker trust sign docker trust signer docker trust signer add docker trust signer remove docker unpause docker update docker version docker volume docker volume create docker volume inspect docker volume ls docker volume prune docker volume rm docker wait
|