first commit
This commit is contained in:
28
docs/docker.md
Normal file
28
docs/docker.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# Docker
|
||||
|
||||
## Remove Docker Containers
|
||||
|
||||
⚠️ WARNING: Data Loss Imminent
|
||||
The following command will delete ALL Docker data, including stopped containers, images, and volumes (which contain persistent application data like databases, configurations, and git repositories).
|
||||
|
||||
1. Permanently erase all docker containers in `docker-compose.yml`.
|
||||
|
||||
```bash
|
||||
cd /srv/infra
|
||||
sudo docker compose down -v --rmi all --remove-orphans
|
||||
```
|
||||
|
||||
2. Permanently delete Bind Mount data.
|
||||
|
||||
```bash
|
||||
sudo rm -rf ./gitea-data
|
||||
sudo rm -rf ./gitea-runner-data
|
||||
```
|
||||
|
||||
3. Verify that no components remain.
|
||||
|
||||
```bash
|
||||
sudo docker ps -a
|
||||
sudo docker images -a
|
||||
sudo docker volume ls
|
||||
```
|
||||
Reference in New Issue
Block a user