数据库
首页 > 数据库> > docker启动mysql报错Error starting userland proxy: listen tcp4 0.0.0.0:3306: bind: address already in use

docker启动mysql报错Error starting userland proxy: listen tcp4 0.0.0.0:3306: bind: address already in use

作者:互联网

1、问题描述

Error response from daemon: driver failed programming external connectivity on endpoint mysql (11c5baee97c46d1f911f0ab48f5ee59b918dd27954102d40177997cba255962f): Error starting userland proxy: listen tcp4 0.0.0.0:3306: bind: address already in use

大概意思是linux的3306端口被占用了

2、解决方法

1、查看当前占用端口

netstat -tanlp

在这里插入图片描述

2、杀死进程

kill 占用端口进程的PID

例如根据上图,则要杀死的PID为1330的进程

kill 1330

至此,就可以成功启动docker的mysql镜像了

标签:userland,0.0,占用,mysql,端口,报错,Error,3306
来源: https://blog.csdn.net/qq_47768542/article/details/114147974