Docker deploy error port is already allocated

From the docker ps output, there is a container which is listening on port 9906 as you can see 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:

sudo docker kill c09….
1 Like