256815 (2) [Avatar] Offline
Watched video and followed instructions to the letter - I think. When I attempt to view webpage I get an error:"Cannot connect to the database Error: The server requested authentication method unknown to the client". Is this only true for me?
Peter Fisher (4) [Avatar] Offline
Sorry to hear that you are having problems with connecting to the database.
Are you able give me further information about this?
- In which module/unit/video are experiencing the issue?
- Are you using the Docker images from https://hub.docker.com and if so which tag are you using?
- Are you using the code on git hub (https://github.com/pfwd/manning-docker-in-motion) and if so which tag are you using?
TejaswiniUL (2) [Avatar] Offline
Connecting to a mysql running on a Docker container
I'm trying to run mysql server on a Docker (installed with Docker Toolbox for Mac) container and access it from my machine running OS X Yosemite. The documentation from the official repo does not explain how to connect from outside the docker host !!

I've created a container using the official repository as follows:

[color=green]$ docker pull mysql
$ docker run --name some-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:latest -p 3306:3306 
$ docker-machine ip default
$ docker inspect CONTAINER_ID[/color]

Then I get the ip address (, but when I ping it I see time outs!!!
I tried to add port forward to the default machine:

VBoxManage controlvm "default" natpf1 "tcp-port3306,tcp,,3306,,3306";
But when connecting with Sequel pro (a mysql client) with root @ on 3306, I have a connection failure.

What's the appropriate way to connect to the running mysql server?

Thanks & Regards
Tejaswini UL
Peter Fisher (4) [Avatar] Offline
Hi Tejaswini,
To claify you have created a Docker MYSQL container and wish to connect to this via the host machine?
If this is the case then I would suspect that there is an issue with the network configuration between the container and the host.

The networking side of Docker isn't something that this course overly focuses on however I will have a think, run some tests here and get to you.
TejaswiniUL (2) [Avatar] Offline
Thanks Peter