We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a4d88f commit a4cdcc1Copy full SHA for a4cdcc1
config.sh
@@ -3,6 +3,12 @@ set -eoux pipefail
3
4
CONTAINER_NAME="osiris-hardware-ci"
5
6
+# If a running container with the same name exists, stop it.
7
+if docker ps -q -f name="^${CONTAINER_NAME}$" | grep -q .; then
8
+ echo "Stopping running container ${CONTAINER_NAME}..."
9
+ docker stop "${CONTAINER_NAME}" || true
10
+fi
11
+
12
# If there's any container with the same name, remove it.
13
if docker ps -aq -f name="^${CONTAINER_NAME}$" | grep -q .; then
14
echo "Removing existing container ${CONTAINER_NAME}..."
0 commit comments