docker ps -qf "name=IMAGE_NAME"
docker ps --filter status=running --filter publish="$PORT" --format "table {{.ID}} " | grep -m2 "" -o -n | tail -n1 | sed 's/2://g'