Restart script clarity (#4839)

* Add error clarity to restart containers script

* erroneous cleanup on exit

* fix when starting containers for the first time

---------

Co-authored-by: Wenxi Onyx <wenxi-onyx@Wenxis-MacBook-Pro.local>
This commit is contained in:
Wenxi
2025-06-06 09:11:58 -07:00
committed by GitHub
parent 9631f373f0
commit 21dc3a2456

View File

@ -19,8 +19,8 @@ REDIS_VOLUME=${3:-""} # Default is empty if not provided
# Stop and remove the existing containers
echo "Stopping and removing existing containers..."
docker stop onyx_postgres onyx_vespa onyx_redis
docker rm onyx_postgres onyx_vespa onyx_redis
docker stop onyx_postgres onyx_vespa onyx_redis 2>/dev/null || true
docker rm onyx_postgres onyx_vespa onyx_redis 2>/dev/null || true
# Start the PostgreSQL container with optional volume
echo "Starting PostgreSQL container..."