1

I am trying to install Docker in my local machine with OS Linux Mint 19.1. I am trying to use this repo. I am following this tutorial. I am trying to run docker-compose up command. But I am getting below errors.

Creating network "docker-apache-php74-mysql8-phpmyadmin-master_default" with the default driver
Creating docker-apache-php74-mysql8-phpmyadmin-master_webserver_1 ... 
Creating png-mysql-test                                           ... 
Creating png-mysql-test                                           ... error

ERROR: for png-mysql-test  Cannot start service mysql: driver failed programming external connectivitCreating docker-apache-php74-mysql8-phpmyadmin-master_webserver_1 ... done
r starting userland proxy: listen tcp4 0.0.0.0:3306: bind: address already in use

ERROR: for mysql  Cannot start service mysql: driver failed programming external connectivity on endpoint png-mysql-test (08c4ea620670b02725995ea050309b2ec40432d8e89e4e4d8505d2ac959d65b7): Error starting userland proxy: listen tcp4 0.0.0.0:3306: bind: address already in use
ERROR: Encountered errors while bringing up the project.

enter image description here

I am learning docker. How can I install & use Docker ?

Nick ODell
  • 15,465
  • 3
  • 32
  • 66
abu abu
  • 6,599
  • 19
  • 74
  • 131
  • 2
    Well, are you running another mysql server? It says that port 3306 is being used by something else. What's using that port? – Nick ODell Jan 10 '22 at 00:35
  • Thanks @NickODell. Previously I installed XAMPP. May be there is another MySql server. How to know about that PORT ? What should I do in this regard ? – abu abu Jan 10 '22 at 00:37
  • 2
    You can kill it off if you truly don't need it. `kill $(lsof -t -i:3306)`. If you need it, you can make use of a different port. – Obsidian Age Jan 10 '22 at 00:41
  • 1
    This thread has suggestions on how to debug this problem: https://stackoverflow.com/questions/37971961/docker-error-bind-address-already-in-use – Nick ODell Jan 10 '22 at 00:41

0 Answers0