随笔分类 -  Docker

摘要:获取镜像 docker pull elasticsearch:8.11.4 docker pull elasticsearch:8.11.4 创建网络 docker network create es-net 运行 es docker run -d --name es --network es-ne 阅读全文
posted @ 2024-05-08 14:04 熠然 阅读(39) 评论(0) 推荐(0) 编辑
摘要:nginx 的安装请参考 "Docker 安装 nginx 并挂载宿主目录到容器中" 多个 tomcat 安装 按照 "Docker 安装 tomcat 并挂载宿主目录到容器中" 方式,启动三个 tomcat,宿主端口分别为 8081,8082,8083。同时在宿主的 home/ubuntu/tom 阅读全文
posted @ 2020-03-22 19:05 熠然 阅读(304) 评论(0) 推荐(0) 编辑
摘要:Docker 安装 tomcat 1. 搜索 tomcat 镜像 2. 拉取 tomcat 官方最新镜像 3. 创建容器 tomcat test ,映射宿主的 8080 端口到 tomcat 的 8080 端口 4. 浏览器打开输入 ip+8080 挂载宿主目录到容器 1. tomcat 容器 we 阅读全文
posted @ 2020-03-22 11:38 熠然 阅读(3889) 评论(1) 推荐(0) 编辑
摘要:安装 nginx 1. 搜索 nginx 的镜像 2. 获取 nginx 的官方镜像 3. 查看本地镜像 4. docker 启动 nginx 镜像,映射宿主端口 80 端口到 nginx 的 80 端口 5. 访问宿主ip和端口,查看 nginx 挂载宿主目录到镜像中 1. nginx 配置信息在 阅读全文
posted @ 2020-03-21 15:19 熠然 阅读(11593) 评论(1) 推荐(0) 编辑
摘要:Docker 安装 更新apt包索引: sudo apt-get update 安装包以允许apt通过HTTPS使用repository: sudo apt-get install apt-transport-https ca-certificates curl software-propertie 阅读全文
posted @ 2019-09-27 15:39 熠然 阅读(864) 评论(0) 推荐(0) 编辑
摘要:1. 搜索 ActiveMQ 镜像 2. 获取 ActiveMQ 镜像 2. 查看本地镜像 3. docker 启动 ActiveMQ 命令 61616是 activemq 的容器使用端口(映射为61617) 8161是 web 页面管理端口(对外映射为8162) 4. 使用 docker ps 查 阅读全文
posted @ 2019-09-15 16:38 熠然 阅读(11967) 评论(1) 推荐(3) 编辑
摘要:获取 mySQL 镜像 docker pull mysql 查看本地镜像 docker image docker 启动 mysql 命令 docker run -di --name mysql -p 33306:3306 -e MYSQL_ROOT_PASSWORD=123456 mysql 3.1 阅读全文
posted @ 2019-09-15 14:55 熠然 阅读(356) 评论(0) 推荐(0) 编辑
摘要:获取 redis 镜像 docker pull redis 不加版本号默认获取最新版本,也可以使用 docker search redis 查看镜像来源 查看本地镜像 docker images 从官网获取 redis.conf 配置文件 修改默认配置文件 bind 127.0.0.1 #注释掉这部 阅读全文
posted @ 2019-09-15 13:54 熠然 阅读(21256) 评论(0) 推荐(1) 编辑