加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

Docker中的MySQL冻结在root密码配置中

发布时间:2020-12-16 03:33:33 所属栏目:安全 来源:网络整理
导读:我有下一个dockerfile: FROM ubuntu:16.04RUN apt-get update apt-get upgrade -y apt-get install -y apache2 mysql-server mysql-client 之后,Docker构建问我密码root: While not mandatory,it is highly recommended that you set a password for theMy

我有下一个dockerfile:

FROM ubuntu:16.04
RUN apt-get update && apt-get upgrade -y && apt-get install -y apache2 mysql-server mysql-client

之后,Docker构建问我密码root:

While not mandatory,it is highly recommended that you set a password for the
MySQL administrative "root" user.

If this field is left blank,the password will not be changed.

New password for the MySQL "root" user:

我输入密码,但是,它只是保持该状态.

我可以这样安装mysql吗?我不想自动安装它

Docker方式是“一个进程的一个容器”.
你需要一个用于apache的容器和一个用于mysql的容器.
您可以使用official php image和official mysql image

为了链接容器,我建议使用docker-compose

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读