centos7下安装docker(7docker base command 命令词典)

时间:2024-01-01 20:13:21

上一章中我总结了学习docker 镜像时所用过的命令,今天先来将docker base command 记录一下,参考:https://docs.docker.com/edge/engine/reference/commandline/attach/#parent-command

1.docker  attach 进入容器

2.docker build 创建镜像(使用dockerfile创建)

3.docker commit 创建镜像

4.docker cp将host中的文件复制到容器中

5.docker creat 创建容器

6.docker deploy

7.docker diff

8.docker events

9.docker exec 进入容器

10.docker export

11.docker history 镜像创建的历史过程

12.docker images查看所有镜像

13.docker import

14.docker info查看docker配置等

15.docker inspect(docker network inspect)查看网络信息

16.docker kill 停止容器

17.docker load

18.docker login 登录docker hub账号

19.docker logout登出docker hub账号

20.docker logs 查看容器日志

21.docker pause 暂停容器

22.docker port查看容器映射内容

23.docker ps 查看运行中的容器

24.docker pull 下载镜像

25.docker push上传镜像

26.docker rename 重命名容器

27.docker restart 重启容器

28.docker rm 删除容器

29.dcoker rmi删除镜像

30.docker run运行一个容器

31.docker save

32.docker search 在docker hub上查找镜像

33.docker start 开始容器

34.docker stats实时监控容器的负载情况

35.docker stop 停止容器

36.docker tag 给镜像打标签

37.docker top查看容器内部的负载

38.docker unpause 不暂停容器

39.docker version  docker 版本

40.docker wait

41.docker checkpoint:1)docker checkpoint

2)docker checkpoint creat

3)docker checkpoint ls

4)docker checkpoint rm

42.docker config:1)docker config

2)docker config creat

3)docker config inspect

4)docker config ls

5)docker config rm

43.docker container:1)docker container

2)docker container  attach

3)docker container commit

4)docker container cp

5)docker container creat

6)docker container diff

7)docker container exec

8)docker container export

9)docker container inspect

10)docker container kill

11)docker container logs

12)docker container ls

13)docker container pause

14)docker container port

15)docker container prune

16)docker container rename

17)docker container restart

18)docker container rm

19)docker container run

20)docker container start

21)docker container  stats

22)docker container stop

23)docker container top

24)docker container unpause

25)docker container update

26)docker container wait

44.docker image :1)docker image

2)docker image build

3)docker image history

4)docker image import

5)docker image inspect

6)docker image load

7)docker image ls

8)docker image prune

9)docker image pull

10)docker image push

11)docker image rm

12)docker image save

13)docker image tag

45.docker network:1)docker network

2)docker network connect给容器新增一块网卡

3)docker network creat创建一个新网络

4)docker network disconnect

  5)docker network inspect查看网络具体信息

   6)docker network ls查看host上的所有网络

7)docker network prune

   8)docker network rm删除网络

46.docker node:1)docker node

2)docker node demote

3)docker node inspect

4)docker node ls

5)docker node promote

6)docker node ps

7)docker node rm

8)docker node update

47.docker plugin :1)docker plugin

2)docker plugin create

3)docker plugin disable

4)docker plugin enable

5)docker plugin inspect

6)docker plugin install

7)docker plugin ls

8)docker plugin rm

9)docker plugin set

10)docker plugin upgrade

48.docker secret :1)docker secret

2)docker secret create

3)docker secret inspect

4)docker secret ls

5)docker secret rm

49.docker service :1)docker service

2)docker  service create

3)docker service inspect

4)docker service logs

5)docker service ls

6)docker service ps

7)docker service rollback

8)docker service rm

9)docker service scale

10)docker service update

50.docker stack :1)docker stack

2)docker stack deploy

3)docker stack ps

4)docker stack rm

5)docker stack services

51.docker swarm :1)docker swarm

2)docker swarm ca

3)docker swarm init

4)docker swarm join-token

5)docker swarm join

6)docker swarm leave

7)docker swarm unlock-key

8)docker swarm unlock

9)docker swarm update

52.docker system :1)docker system

2)docker system df

3)docker system events

4)docker system info

5)docker system prune

53.docker trust :1)dcoker trust

2)docker trust revoke

3)docker trust sign

4)docker trust view

54.docker volume :1)docker volume create创建volume

                              2)docker volume inspect查看volume信息

                              3)docker volume ls列示volume

                              4)docker volume prune删除guervolume

                              5)docker volume rm删除volume

每学习完一个模块,我不仅会系统的复习一下每个模块的内容,还会在这里将学过的命令进行总结一次