Skip to content

Commit

Permalink
don't run docker prune when installed as app
Browse files Browse the repository at this point in the history
Signed-off-by: Dirk Hohndel <[email protected]>
  • Loading branch information
dirkhh committed Oct 2, 2023
1 parent 36b96b7 commit 0136d44
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ echo "${TIME}: pulling new container images and restarting docker" >> /var/log/a
bash ./docker-pull.sh
bash /opt/adsb/docker-compose-start

# finally remove the images and files we no longer use
docker system prune -f
# finally remove the images and files we no longer use - but only if this is the image we are running
# this would be rude to do on a system where we are one of many apps potentially using docker.
[ -f os.adsb.feeder.image ] && docker system prune -f

sed -i "s/CONTAINER_VERSION=.*/CONTAINER_VERSION=$TIME/" /opt/adsb/config/.env

Expand Down

0 comments on commit 0136d44

Please sign in to comment.