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