Kubernetes/Docker/Dockerfile/Mysql
offends 7a2f41e7d6
All checks were successful
continuous-integration/drone Build is passing
synchronization
2024-08-07 18:54:39 +08:00
..
sql synchronization 2024-08-07 18:54:39 +08:00
Dockerfile synchronization 2024-08-07 18:54:39 +08:00
Dockerfile-secrets synchronization 2024-08-07 18:54:39 +08:00
my.cnf synchronization 2024-08-07 18:54:39 +08:00
README.md synchronization 2024-08-07 18:54:39 +08:00

本文作者:丁辉

Mysql 镜像构建

  • 自动初始化 Mysql 数据库, 构建示例

    docker build -t <镜像名:标签> .
    
  • Mysql 通过 Secrets 隐藏构建账户密码, 示例

    Mysql-Secrets 使用

    docker build -t <镜像名:标签> --file=./Dockerfile-secrets .