摘要: 镜像命令 docker images 查看本地主机镜像root@t2 ~]# docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEhello-world latest bf756fb1ae65 5 months ago 13.3kB#REPOSITORY 阅读全文
posted @ 2020-06-25 22:10 taotaozh 阅读(268) 评论(0) 推荐(0)
摘要: docker常用命令 一、帮助命令 docker version #查看版本信息 dicker info #docker描述信息 docker --help #帮助命令 Usage: docker [OPTIONS] COMMAND​A self-sufficient runtime for con 阅读全文
posted @ 2020-06-25 17:59 taotaozh 阅读(229) 评论(0) 推荐(0)
摘要: docker的run到底做了什么操作呢? 它会优先寻找本地的镜像,如果没有就到仓库找,找不到返回错误,查找不到该镜像。能找到就拉这镜像下来,以该镜像为模板生产容器实例运行。 阅读全文
posted @ 2020-06-25 17:24 taotaozh 阅读(258) 评论(0) 推荐(0)
摘要: 环境:centos7.6 [root@tzh ~]# uname -aLinux tzh 3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun 18 16:35:19 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux docker安装() 阅读全文
posted @ 2020-06-25 17:12 taotaozh 阅读(195) 评论(0) 推荐(0)
摘要: docker 三要素 一、镜像(image) docker image是一个只读的模板,image用来创建docker容器,一个镜像可以创建多个容器。 二、容器(container) docker利用容器独立运行的一个或者一组应用。容器就是用镜像创建的运行实例。(也就是把镜像导入docker中,然后 阅读全文
posted @ 2020-06-25 15:47 taotaozh 阅读(708) 评论(0) 推荐(0)