Updated existing container logic
This commit is contained in:
1 parent
7eccfd6fd0
commit
32f52d02e8
1 file changed
+6
-2
+6
-2
@@ -222,8 +222,12 @@ docker pull "${IMAGE}" || {
|
||||
# -----------------------------
|
||||
# Stop old container
|
||||
# -----------------------------
|
||||
docker stop "${CONTAINER_NAME}" 2>/dev/null || true
|
||||
docker rm "${CONTAINER_NAME}" 2>/dev/null || true
|
||||
log "Cleaning up existing Tentacle container (if any)..."
|
||||
|
||||
if docker inspect "${CONTAINER_NAME}" >/dev/null 2>&1; then
|
||||
docker stop "${CONTAINER_NAME}"
|
||||
docker rm -f "${CONTAINER_NAME}"
|
||||
fi
|
||||
|
||||
# -----------------------------
|
||||
# Create dirs
|
||||
|
||||
Reference in new issue
Block a user