摘要: 镜像 https://hub.docker.com/r/errorlife/tomcat/ docker pull errorlife/tomcat 阅读全文
posted @ 2018-05-09 10:23 陶海军 阅读(283) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-05-09 09:50 陶海军 阅读(1460) 评论(0) 推荐(0) 编辑
摘要: docker run --name activemq -p 61617:61616 -p 8162:8161 -e ACTIVEMQ_ADMIN_LOGIN=admin -e ACTIVEMQ_ADMIN_PASSWORD=mq123 --restart=always -d webcenter/activemq:latest 阅读全文
posted @ 2018-03-16 15:10 陶海军 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 安装:curl https://releases.rancher.com/install-docker/1.12.sh | sh 启动:service docker start 阅读全文
posted @ 2018-03-16 09:56 陶海军 阅读(73) 评论(0) 推荐(0) 编辑
摘要: sudo docker exec -it containerID /bin/bash 阅读全文
posted @ 2018-03-15 10:03 陶海军 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 从主机复制到容器sudo docker cp host_path containerID:container_path 从容器复制到主机sudo docker cp containerID:container_path host_path 阅读全文
posted @ 2018-03-15 10:02 陶海军 阅读(131) 评论(0) 推荐(0) 编辑
摘要: docker run --name picker-redis -p 6379:6379 -d redis --requirepass "认证密码" 阅读全文
posted @ 2018-03-08 11:28 陶海军 阅读(1181) 评论(0) 推荐(0) 编辑
摘要: 1.问题描述 宿主机与容器时间相差8小时 2.原因 宿主机采用了CST时区,CST应该是指(China Shanghai Time,东八区时间)容器采用了UTC时区,UTC应该是指(Coordinated Universal Time,标准时间) 3.问题解决 阅读全文
posted @ 2018-01-26 16:51 陶海军 阅读(450) 评论(0) 推荐(0) 编辑
摘要: 1.创建模板文件 docker-compose.yml #backend web application, scale this with docker-compose scale web=3 web: image: tomcat-fhm:1.0 environment: SERVICE_8080_ 阅读全文
posted @ 2018-01-22 10:39 陶海军 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 1.安装python-pipyum install python-pip2.无安装包yum -y install epel-release3.升级python-pippip install --upgrade pip4.安装docker-compsepip install docker-compos 阅读全文
posted @ 2018-01-19 15:11 陶海军 阅读(1071) 评论(0) 推荐(0) 编辑