test7
This commit is contained in:
+6
-6
@@ -43,12 +43,12 @@ steps:
|
||||
rm -rf "$TMP_DIR"
|
||||
cd "$APP_DIR"
|
||||
docker compose pull web
|
||||
# Принудительно освобождаем порт 3000
|
||||
docker stop na-granicelife 2>/dev/null || true
|
||||
docker rm na-granicelife 2>/dev/null || true
|
||||
docker compose down --remove-orphans || true
|
||||
# Если порт всё ещё занят — убиваем любой процесс на нём
|
||||
docker ps -a --filter "publish=3000" -q | xargs -r docker stop 2>/dev/null || true
|
||||
# Останавливаем свой контейнер
|
||||
docker compose down --remove-orphans --timeout 10 2>/dev/null || true
|
||||
# Находим и удаляем ВСЕ контейнеры, занимающие порт 3000
|
||||
docker ps -a -q --filter "publish=3000" | xargs -r docker stop 2>/dev/null || true
|
||||
docker ps -a -q --filter "publish=3000" | xargs -r docker rm -f 2>/dev/null || true
|
||||
sleep 3
|
||||
docker compose up -d
|
||||
docker image prune -f
|
||||
docker compose ps
|
||||
|
||||
Reference in New Issue
Block a user