Hi All
I am tryingto install MediaWiki using Docker. I am using Windows, but want to use Docker so I have more scope of what I can do. Long term I want to create my own image so I can have Parsoid and GraphViz running on it.
The issue I am getting is when I go onto the database page of the installation I get:
Cannot access the database: php_network_getaddresses: getaddrinfo failed: Name or service not known (mysqlhost).
Check the host, username and password and try again.
I have tried to create my own hostname for the MySQL running the line:
docker run --name=mysql1 -–network=mysqlhost -d mysql/mysql-server
But it comes up with the same error.
To get the container for MediaWiki working I have used:
docker run --name mediawiki -p 80:80 mediawiki
It looks like they are both working, just not talking to each other.
I have tried to link the MySQL up with MediaWiki as detailed on the MediaWiki Docker page using:
docker run --name mediawiki --link wiki:mysql -d mediawiki
But with that I get the error:
C:\Users\User>docker run --name mediawiki --link wiki:mysql -d mediawiki
docker: Error response from daemon: Conflict. The container name "/mediawiki" is already in use by container "eb03498d223748379186507fe6d58e1cb7f59f4f2de3e6e1ba863d5b8210bf3c". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.
So I tried:
docker run --name wiki --link wiki:mysql -d mediawiki
But I get the error:
C:\Users\User>docker run --name wiki --link wiki:mysql -d mediawiki
docker: Error response from daemon: could not get container for wiki: No such container: wiki.
See 'docker run --help'.
Not sure what I am doing wrong, any help is appreciated,