Then mysql –host localhost –port 3306 -u root gives me the following error :īut running mysql -u root -p –host 0.0.0.0 works.ĭoes someone have an explanation ? How to solve this problem? Solution no. I am reading the docs here and I find myself a bit confused, since runningĭocker run –name some-mysql -p 3306:3306 -d mysqlĭocker run –name some-mysql -p 127.0.0.1:3306:3306 -d mysql