docker中启动容器提示端口被占用

docker中启动容器提示端口被占用,但是

docker ps -a

查不到信息

1.查询端口被占用的id

netstat -ntpl |grep 3306

2.杀掉该id

kill -9

如果kill -9杀id无效,请看另一篇博客 Linux中进程杀掉总是自动重启

L-Rui
原文地址:https://www.cnblogs.com/Rui6/p/13983733.html