Error starting userland proxy: listen tcp0.0.0.0:3306: bind: address already in use

前端 未结 9 689
难免孤独
难免孤独 2020-12-09 08:16

I have to make LAravel app and to deliver a Dockerfile ,but I\'m really stuck with this. Before that I had a nightmare wile installing laravel on m

9条回答
  •  时光取名叫无心
    2020-12-09 08:49

    The error you are seeing is from a local mysql instance listening on port 3306 (currently on pid 1370 from your comments). You won't be able to run a container that publishes on this host port while it's already in use by another process. Solutions are to either stop mysql on the local host, or to change/remove the published port in your container. If the port is only needed by other containers, you can leave it unpublished and they can communicate directly on the docker private network (by default, this is "bridge").

提交回复
热议问题