随笔分类 -  Docker

Docker
摘要:1、Dockerfile 2、修改配置 3、构建镜像 docker build -t hadoop . 阅读全文
posted @ 2016-12-08 16:44 Enast 阅读(1922) 评论(0) 推荐(0)
摘要:前提: “基于dockerhub的jetty镜像的ossfs镜像” 已经搭建好了。 部署准备: 1、本地打包:war包--》idea工具 mvn 打包。 2、本地sh脚本:compile_vps_deplay.sh 这里是直接先解压了,因为,ossfs要绑定同步的目录。而我的同步的文件夹在war包里 阅读全文
posted @ 2016-11-22 14:29 Enast 阅读(1093) 评论(0) 推荐(0)
摘要:阿里云ossfs:https://help.aliyun.com/document_detail/32196.html?spm=5176.product31815.6.514.yVI0xM 以上是阿里云官方的使用文档 1、先构建基于jetty的apt镜像(因为jetty的系统类型是:debian) 阅读全文
posted @ 2016-11-21 19:55 Enast 阅读(924) 评论(0) 推荐(0)
摘要:本文URL: http://www.cnblogs.com/go2bed/p/5703117.html 官方文档: https://docs.docker.com/ 搜索镜像 镜像可以去 https://hub.docker.com/ 搜索,或者使用命令 如: user@ubuntu:~$ sudo 阅读全文
posted @ 2016-11-16 15:05 Enast 阅读(1393) 评论(0) 推荐(0)
摘要:前提: 1、Ubuntu 系统。 2、docker环境已经安装好。 实现步骤: 1、上docker hub 下载jetty docker 镜像。 执行命令:$ sudo docker pull jetty 官方的镜像 ,jetty的部署目录是在:/usr/lib/jetty/webapps/下。 2 阅读全文
posted @ 2016-11-15 18:51 Enast 阅读(2320) 评论(0) 推荐(0)
摘要:compose是用来在docker中定义和运行复杂应用的小工具,比如在一个文件中定义多个容器,只用一行命令就可以让一切就绪并运行. 安装pip: 这里显示,找不到相应的包?? 说没有python-pip软件包可以安装。 这是因为像centos这类衍生出来的发行版,他们的源有时候内容更新的比较滞后,或 阅读全文
posted @ 2016-11-01 18:41 Enast 阅读(2046) 评论(0) 推荐(0)
摘要:https://github.com/docker/machine/releases/ 指令: 文件本占用了!!! 找到端口号:13383 上面一步占用了。 那我们将这个进程杀死: 这里显示,版本号为:0.8.2 ,Docker Machine安装成功,同事杀死了13383进程。 阅读全文
posted @ 2016-11-01 16:46 Enast 阅读(3289) 评论(0) 推荐(0)
摘要:系统要求是64位,内核版本至少3.10。 首先添加yum软件源: 之后更新yum软件源缓存,并安装docker-engine 查看docker 版本: Cannot connect to the Docker daemon. Is the docker daemon running on this 阅读全文
posted @ 2016-11-01 10:16 Enast 阅读(476) 评论(0) 推荐(0)
摘要:Dockerfile 文件如下: 同时在和Dockerfile 文件的同级目录下有如下文件: # CentOS-Base.repo## The mirror system uses the connecting IP address of the client and the# update sta 阅读全文
posted @ 2016-10-30 13:30 Enast 阅读(1829) 评论(0) 推荐(0)