Compare commits
4 Commits
8802e0b6b1
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| dd6f022c94 | |||
| a8e1ae9224 | |||
| 3052fa2806 | |||
| 1819ab280e |
@@ -1,21 +1,4 @@
|
|||||||
# 🐳 Docker Setup Script for Debian
|
|
||||||
|
|
||||||
This script automates the installation of Docker and optionally helps you set up a working directory and a `compose.yaml` as well as a `.env` file.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 🚀 How to Use
|
|
||||||
|
|
||||||
run the following script
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
wget -qO docker-debian.sh https://gitea.featherer.xyz/nono/docker-debian/raw/branch/main/docker-debian.sh
|
wget -qO docker-debian.sh https://gitea.featherer.xyz/nono/Scripts/raw/branch/main/docker-debian/docker-debian.sh
|
||||||
source docker-debian.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
Or when run locally (using your own ip address)
|
|
||||||
|
|
||||||
```bash
|
|
||||||
wget -qO docker-debian.sh http://10.1.0.102:3000/nono/docker-debian/raw/branch/main/docker-debian.sh
|
|
||||||
source docker-debian.sh
|
source docker-debian.sh
|
||||||
```
|
```
|
||||||
@@ -1,44 +1,6 @@
|
|||||||
# 🛠️ Maintenance Script for Docker Containers
|
# cd into the docker folder
|
||||||
|
|
||||||
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:
|
|
||||||
|
|
||||||
```bash
|
```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
|
||||||
wget -qO update-docker.sh https://gitea.featherer.xyz/nono/update-docker/raw/branch/main/update-docker.sh
|
|
||||||
source 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/update-docker/raw/branch/main/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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user