摘要:下载nginx镜像文件 docker pull nginx:1.24.0 宿主机上创建nginx_80 目录 html cert conf logs 创建 配置文件nginx.conf 一、Nginx 配置文件 nginx.conf 操作:在 http 模块增加(子配置文件的路径和名称):inclu
阅读全文
摘要:官方镜像说明页: 可根据自己需要,选择对应版本的 php 进行下载。 这里使用 php 7.4 + apache 服务的镜像为例: docker pull php:7.4.33-apache 运行容器: docker run --name jiuta-php-apache-7.4 -d -p 900
阅读全文
摘要:### 备份数据库脚本mysql_backup_docker_dbname.sh ```shell #!/bin/bash # 设置mysql的登录用户名和密码(根据实际情况填写) mysql_user="root" mysql_password="root&" mysql_host="6.135.
阅读全文
摘要:1、从项目发布页面下载适合你的系统的二进制文件,并将其复制到$HOME/.docker/cli-plugins,作为docker-compose来安装Compose V2 运行以下命令,下载Docker Compose的当前稳定版本 $ mkdir -p ~/.docker/cli-plugins/
阅读全文
摘要:源地址设置 在 /etc/docker/daemon.json 中写入如下内容(如果文件不存在请新建该文件) { "registry-mirrors": [ "https://hub-mirror.c.163.com", "https://dockerhub.azk8s.cn", "https://
阅读全文
摘要:docker 自定义bridge 容器 Could not resolve host docker 容器中访问外网, curl www.baidu.com 报错信息 curl: (6) Could not resolve host: www.baidu.com 报错信息 Could not reso
阅读全文
摘要:ELK是由 Elasticsearch、Logstash和Kibana 三部分组件组成。 Elasticsearch 是个开源分布式搜索引擎,它的特点有:分布式,零配置,自动发现,索引自动分片,索引副本机制,restful风格接口,多数据源,自动搜索负载等。 Logstash 是一个完全开源的工具,
阅读全文
摘要:docker 环境 CentOS 8.1 Docker 修改镜像源地址 Docker 官方中国区 https://registry.docker-cn.com 网易 http://hub-mirror.c.163.com ustc --中国科学技术大学 https://docker.mirrors.
阅读全文
摘要:docker 安装 ngix vue 获取 nginx 镜像 docker pull nginx docker 镜像名称由REPOSITORY和TAG组成 [REPOSITORY[:TAG]],TAG默认为latest docker run -p 80:80 --name nginxtest ngi
阅读全文
摘要:创建用户定义的网桥网络 使用该docker network create命令。 $ docker network create my-net centos防火墙 开放一个新的端口 firewall-cmd --zone=public --add-port=3306/tcp --permanent 启
阅读全文
摘要:https://docs.microsoft.com/zh-cn/virtualization/windowscontainers/manage-docker/configure-docker-daemon boot2docker 下载地址 https://github.com/boot2docke
阅读全文
摘要:docker 环境 CentOS 8.1 拉取镜像 docker pull tomcat:jdk8-openjdk docker pull tomcat:8.5.55-jdk8-openjdk 查看镜像 docker images 显示正在运行的容器: [root@localhost HMK]# d
阅读全文
摘要:参考 https://juejin.im/post/5e3032575188252c6e182a55 软件更新 把相关软件都更新 yum update 卸载旧版本 yum remove docker \ docker-client \ docker-client-latest \ docker-co
阅读全文
摘要:docker 环境 是 CentOS 8.1 拉取镜像 docker pull mysql:8.0.36 在宿主机创建持久化 mysql data 及mysql.cnf 数据目录和配置文件目录 日志目录 mkdir -p /docker-root/mysql_3308/conf.d mkdir -p
阅读全文