This is my docker-compose.yml
version: \'2\'
services:
wordpress:
image: wordpress
ports:
- \"8080:80\"
environment:
WORDPRESS_DB_P
I did not use yml, but had same logs and this did not work
docker run -dP --link elated_yonath -e WORDPRESS_DB_USER=libik -e WORDPRESS_DB_PASSWORD=prdik wordpress
But then I found, that I have to add :mysql to linked container
docker run -dP --link elated_yonath:mysql -e WORDPRESS_DB_USER=libik -e WORDPRESS_DB_PASSWORD=prdik wordpress
Now it started.