Docker Community Forums

Share and learn in the Docker community.

Local host refuses to connect, when linking the mysql and wordpress container

build

(Abhinavsharma1494) #1

hello, can anyone please tell me why localhost refuses to connect when I am trying to link the Wordpress container with mysql container.

the error displayed is

`This site can’t be reached

localhost refused to connect.
Did you mean http://localhost-8080.com/?
Search Google for localhost 8080
ERR_CONNECTION_REFUSED`

Docker information
Client:
Version: 17.10.0-ce
API version: 1.32 (downgraded from 1.33)
Go version: go1.8.3
Git commit: f4ffd25
Built: Tue Oct 17 19:00:02 2017
OS/Arch: windows/amd64

Server:
Version: 17.09.1-ce
API version: 1.32 (minimum version 1.12)
Go version: go1.8.3
Git commit: 19e2cf6
Built: Thu Dec 7 22:28:28 2017
OS/Arch: linux/amd64
Experimental: false