Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
update to dockerinit
  • Loading branch information
asubowo committed Apr 23, 2024
commit c1c079a67ef191a09b591fd09f62e097b252cd3e
6 changes: 2 additions & 4 deletions bin/dutil.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function dutil() {

case $1 in
init)
if ! command -v dockerinit; then
if ! command -v dockerinit &> /dev/null; then
echo "dockerinit is not present"
return 1
else
Expand All @@ -83,9 +83,7 @@ function dutil() {
else
docker ps -a | grep $2
fi
;;


;;
rebuild)
#TODO: See if compose file has a build context?
docker compose down && docker compose build . && docker compose up -d
Expand Down