Skip to content

Commit 4346e45

Browse files
committed
feat: Add scripts to restart Docker containers for improved management
1 parent 10fbf33 commit 4346e45

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

restart-docker-container.bat

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@echo off
2+
REM Restart docker containers by stopping and then starting them
3+
4+
SET SCRIPT_DIR=%~dp0
5+
6+
call "%SCRIPT_DIR%stop-docker.bat"
7+
IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
8+
9+
call "%SCRIPT_DIR%start-docker.bat"
10+
EXIT /B %ERRORLEVEL%

restart-docker-container.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
# Restart docker containers by stopping and then starting them
3+
4+
set -e
5+
6+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
7+
8+
"$SCRIPT_DIR/stop-docker.sh"
9+
"$SCRIPT_DIR/start-docker.sh"

0 commit comments

Comments
 (0)