Docker. Error: Cannot start container: port has already been allocated

From the docker ps output, there is a container which is listening on port 5000 as you can see from the 0.0.0.0:5000->5000/tcp under the ports column.

You can kill this container with docker kill container. At which point it will free up the port. In your case:

docker kill 3fdfc9ecf30f

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)