上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
摘要: docker network create docker network connect docker network ls docker network rm docker network disconnect docker network inspect 创建网络 zane@zane-V:~$ 阅读全文
posted @ 2017-06-12 10:23 Aiapple 阅读(2732) 评论(0) 推荐(0) 编辑
摘要: 默认网络 当安装docker时,它会自动创建3个网络。可以使用docker network ls 来查看。 zane@zane-V:~$ docker network ls NETWORK ID NAME DRIVER SCOPE 4b10534b40ff bridge bridge local 7 阅读全文
posted @ 2017-06-12 09:59 Aiapple 阅读(1691) 评论(0) 推荐(0) 编辑
摘要: 在默认网络中启动容器 Dcoker提供两种网络设备,bridge 和 overlay。也可以自己写一个网络驱动插件,当然这是很难的。 每个Docker引擎自动包含三个默认网络: zane@zane-V:~$ docker network ls NETWORK ID NAME DRIVER SCOPE 阅读全文
posted @ 2017-06-12 09:33 Aiapple 阅读(487) 评论(0) 推荐(0) 编辑
摘要: 数据管理的两种方法 Data volumes Data volume containers Data volumes data volumes 对数据的持久化和分享提供一些很有用的特性。 volumes 在容器创建的时候被初始化。 如果容器依赖的镜像包含指定点的数据, 则在新容器建立时将已经存在的数 阅读全文
posted @ 2017-06-11 12:06 Aiapple 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 可插拔存储引擎架构 这种可插拔式的存储架构。可以让你很灵活的去选择适合自己环境的存储引擎。 每个存储引擎都是以Linux 文件系统为基础的。此外,每个存储引擎都以自己的方式自由的管理image层,container层。 也就是说每个种存储引擎在特定的情况下,表现的比其他的更好。 Docker只能运行 阅读全文
posted @ 2017-06-10 16:50 Aiapple 阅读(3703) 评论(0) 推荐(0) 编辑
摘要: Dcokerfile 包含了所有用来组装image的命令。通过docker build来自动创建image。 用法 需要指定本地路径作为上下文目录,路径是本地系统的目录。而docker build会递归的从指定目录去寻找。 $ docker build . Sending build context 阅读全文
posted @ 2017-06-09 13:48 Aiapple 阅读(697) 评论(0) 推荐(0) 编辑
摘要: 为了很好的使用存储引擎,必须明白Dcoker是如何创建和存储images的。 然后要明白这些images是如何让containers使用的。最后简短介绍一些images和containers操作。 Images and layers 每个Docker image都会参照只读列表里的layers,这些 阅读全文
posted @ 2017-06-09 11:41 Aiapple 阅读(1309) 评论(1) 推荐(4) 编辑
摘要: images 是containers的基础。每次使用docker run 命令都要指定image。 列出本地images zane@zane-V:~$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE zane0306/docker-whale l 阅读全文
posted @ 2017-06-07 12:03 Aiapple 阅读(1824) 评论(0) 推荐(0) 编辑
摘要: 安装 docker 目前只支持64位系统 1.下载并安装,简直太方便了 $ curl -fsSL https://get.docker.com/ | sh 用例 1.docker run hello-world $ docker run hello-world Cannot connect to t 阅读全文
posted @ 2017-06-07 11:23 Aiapple 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 运行一个Hello world zane@zane-V:~$ docker run ubuntu /bin/echo 'Hello world' Unable to find image 'ubuntu:latest' locally latest: Pulling from library/ubu 阅读全文
posted @ 2017-06-07 11:04 Aiapple 阅读(3185) 评论(0) 推荐(2) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页