Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to check the version of LAMP that is installed in the Docker-wordpress-nginx #54

Open
khoi-thinh opened this issue Jan 18, 2016 · 2 comments

Comments

@khoi-thinh
Copy link

Hi guys, i'm absolutely new to Docker so I have one question.
I followed the tutorial and successfully installed Wordpress on myIP:8080.
The point is i don't know what's the name of Mysql Database that WP using. Is there any way to do that? BTW, when i was trying to use command mysql_secure_installation to log in to Mysql to create more databases i couldn't. How should i do?

@levino
Copy link

levino commented Jan 22, 2016

Stop using this image. Use the official wordpress image and the mysql image. Then mount the mysql container into the wordpress container as they suggest.

If you are accessing the mysql database in a container based on this very image here, you are doing it wrong. It is not to be used by anything else but the sole wordpress install that is started in the container. Do not rely on internals. Only expect the interface to be working: You get a fresh wordpress install on port 80. Everything else is abuse.

@khoi-thinh
Copy link
Author

In my case, my boss asked me to create one Docker images featuring CentOS, apache 2.27 , php 5.6, mysql 5.6 and wordpress. So i think the only way to do it is using DockerFile. But even though in my dockerfile i created an Mysql database with username and password but when running, i still couldn't login to mysql in docker container.
So as you said, there is no need to worry about login to Mysql database, just need Wordpress to run successfully, right?
So can you check my dockerfile and tell me if there is anything wrong or need to edit please? https://github.com/thinhduckhoi/ruby/issues/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants