From a8e1ae9224c6b26af752c30ed6ab840f8a80db15 Mon Sep 17 00:00:00 2001 From: nono Date: Mon, 12 Jan 2026 11:12:48 +0000 Subject: [PATCH] simplify update docker readme --- update-docker/README.md | 42 ++--------------------------------------- 1 file changed, 2 insertions(+), 40 deletions(-) diff --git a/update-docker/README.md b/update-docker/README.md index 56e5442..f943dbd 100644 --- a/update-docker/README.md +++ b/update-docker/README.md @@ -1,44 +1,6 @@ -# 🛠️ Maintenance Script for Docker Containers - -Automates updating your Docker containers on Debian-based systems by pulling the latest images, restarting services, and cleaning up unused resources. - ---- - -## 🚀 Installation, Setup & Running - -Download the maintenance script to your Docker project directory: +# cd into the docker folder ```bash -# cd into the docker folder wget -qO update-docker.sh https://gitea.featherer.xyz/nono/Scripts/raw/branch/main/update-docker/update-docker.sh source update-docker.sh -``` - -Or, when run locally (replace the ip address to your own) - -```bash -# cd into the docker folder -wget -qO update-docker.sh http://10.1.0.102:3000/nono/Scripts/raw/branch/main/update-docker/update-docker.sh -source update-docker.sh -``` - ---- - -## 🔄 What It Does - -1. **Updates system packages** - Runs `apt update` and `apt upgrade -y` to ensure your host is up to date. -2. **Refreshes Docker services** - Executes `docker-compose pull`, `docker-compose down`, and `docker-compose up -d` to fetch new images and restart containers. -3. **Cleans up unused resources** - Calls `docker system prune -a -f` to remove dangling images, stopped containers, and unused networks. -4. **Verifies running containers** - Lists active containers with `docker ps` so you can confirm everything is up and running. - ---- - -## 📝 Prerequisites - -- **Debian-based OS** (e.g., Debian, Ubuntu) -- **Docker** & **Docker Compose** installed -- A user with **sudo** privileges or in the **docker** group +``` \ No newline at end of file