我有下一个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吗?我不想自动安装它