46 lines
947 B
Markdown
46 lines
947 B
Markdown
---
|
|
title: Maintenance Cheat Sheet
|
|
description: Simple commands for general management of the server
|
|
published: 1
|
|
date: 2026-01-22T18:02:12.325Z
|
|
tags:
|
|
editor: markdown
|
|
dateCreated: 2026-01-22T18:02:09.446Z
|
|
---
|
|
|
|
# 🛠️ Maintenance & CLI Cheat Sheet
|
|
|
|
Common commands for managing Docker, Caddy, and developing apps.
|
|
|
|
## 🐳 Docker Management
|
|
* **List running containers:**
|
|
```bas
|
|
docker ps
|
|
```
|
|
* **Restart all apps:**
|
|
```bash
|
|
cd ~/directory && docker compose up -d
|
|
```
|
|
* **Clean up unused images:**
|
|
```bash
|
|
docker system prune -a
|
|
```
|
|
|
|
### Caddy Specific
|
|
* **Check Config Syntax:**
|
|
```bash
|
|
docker exec -w /etc/caddy caddy-proxy caddy validate
|
|
```
|
|
* **Apply Changes (reload):**
|
|
```bash
|
|
docker exec -w /etc/caddy caddy-proxy caddy reload
|
|
```
|
|
|
|
# 🏗️ Development Reminders
|
|
|
|
Node.js Build Command: Use `Buildx` to ensure compatibility with linux/amd64 architecture.
|
|
```bash
|
|
docker buildx build --platform linux/amd64 -t your-image-name .
|
|
```
|
|
|