我有下一个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
你需要一个用于apache的容器和一个用于mysql的容器.
您可以使用official php image和official mysql image
为了链接容器,我建议使用docker-compose