Skip to content

Commit

Permalink
Better handling of the Docker service
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminshell committed Aug 25, 2022
1 parent a6edd71 commit c12f804
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Logging/setup_logging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ if [[ $(which docker) && $(docker compose version) ]]; then
fi

# Enabling docker service:
echo -e "\x1B[01;34m[*] Enabling Docker Service...\x1B[0m"
systemctl enable docker.service

echo -e "\x1B[01;34m[*] Checking for the Docker service...\x1B[0m"
if [[ $(systemctl list-unit-files --state=enabled | grep docker.service) ]]; then
echo -e "\x1B[01;32m[*] Docker service already enabled\x1B[0m"
else
systemctl enable docker.service
fi
# Starting containers
echo -e "\x1B[01;34m[*] Starting containers\x1B[0m"
docker compose up -d
Expand Down

0 comments on commit c12f804

Please sign in to comment.