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

1. Problem description

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

Probably means that port 3306 of linux is occupied

2. Solution

1. View the currently occupied ports

netstat -tanlp

Insert picture description here

2. Kill the process

kill 占用端口进程的PID

For example, according to the figure above, the process with PID 1330 to be killed

kill 1330

At this point, you can successfully start the docker mysql mirror

Guess you like

Origin blog.csdn.net/qq_47768542/article/details/114147974