Skip to content

4.4.1 image is not connecting to mysql properly #119

Description

@daddykotex

I've been struggling to figure out why this is not working. The first compose file is working, but the second is not.
Working:

docker run -d --name=some-mysql -e MYSQL_ROOT_PASSWORD=root mysql:5.7.10
sleep 10 # just to make sure
docker run -d --name=some-wordpress -p 8082:80 --link some-mysql:mysql wordpress:4.4.0-apache

Not working:

docker run -d --name=some-mysql -e MYSQL_ROOT_PASSWORD=root mysql:5.7.10
sleep 10 # just to make sure
docker run -d --name=some-wordpress -p 8082:80 --link some-mysql:mysql wordpress:4.4.1-apache

Looking at a bunch of comment on the docker hub repo, I'm not alone! The latest commit only shows version and SHA update.

Some containers will contain these log entries:

Complete! WordPress has been successfully copied to /var/www/html
Warning: mysqli::mysqli(): (HY000/2002): Connection refused in - on line 10
MySQL Connection Error: (2002) Connection refused
Warning: mysqli::mysqli(): (HY000/2002): Connection refused in - on line 10
MySQL Connection Error: (2002) Connection refused

Any idea on what happened?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions