相关疑难解决方法(0)

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

我有下一个dockerfile:

FROM ubuntu:16.04
RUN apt-get update && apt-get upgrade -y && apt-get install -y apache2 mysql-server mysql-client
Run Code Online (Sandbox Code Playgroud)

之后,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:
Run Code Online (Sandbox Code Playgroud)

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

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

mysql docker dockerfile

6
推荐指数
2
解决办法
6467
查看次数

标签 统计

docker ×1

dockerfile ×1

mysql ×1