

port=7860
# Check if the port is already in use by a container.
container_info=$(docker ps  -f publish=$port|grep $port)

# If the port is in use, output the container ID.
if [ -n "$container_info" ]; then
    echo "The port $port is already in use by container $container_info."
else
    echo "The port $port is not in use."
fi
