Docker PS идентификатор контейнера Grep
docker ps -qf "name=IMAGE_NAME"
AttractivePenguin
docker ps -qf "name=IMAGE_NAME"
docker ps --filter status=running --filter publish="$PORT" --format "table {{.ID}}\t" | grep -m2 "" -o -n | tail -n1 | sed 's/2://g'