Skip to content

Not connecting to the linked database #120

Description

@MiquelAdell

Steps to reproduce:

  1. create a new docker-compose.yml

  2. paste the example from the website and save:

    wordpress:
    image: wordpress
    links:
    - db:mysql
    ports:
    - 8080:80

    db:
    image: mariadb
    environment:
    MYSQL_ROOT_PASSWORD: example

  3. $ docker-compose up

  4. wait a little

  5. go to the exposed web front end

Error establishing a database connection

I created a more detailed explanation (plus full log) here:
http://stackoverflow.com/questions/34746853/docker-wordpress-container-cant-connect-to-database-container

EDIT: I just tried using:
image: wordpress:4.4

and the exmaple did work so it seems to be a bug introduced between 4.4 and 4.4.1

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