I’m learning Docker and am to the point where I can start 1 container with no problems… so I thought I’de start working on something using 2 containers and I’m a little more familiar with. I am trying to step through the example at https://docs.docker.com/compose/wordpress/ (i copied it exactly) and can get the containers to build and start with no issue… .but something is amiss…
I get the following error when viewing the logs on the wordpress container.
Warning: mysqli::mysqli(): (HY000/1045): Access denied for user ‘root’@‘172.18.0.3’ (using password: YES) in - on line 22
when I login to the console of the mysql db - it doesn’t like the password that is specified in the yml file (trying with mysql -u root -p) and it generates the error ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: YES)
any tips? I’m going crazy trying to figure out why the example doesn’t work.
running on Ubuntu