49 lines
926 B
Markdown
49 lines
926 B
Markdown
|
|
## 基本命令
|
|
|
|
```shell
|
|
# bring docker container up
|
|
docker-compose up
|
|
|
|
# Stop services only
|
|
docker-compose stop
|
|
|
|
# Stop and remove containers, networks..
|
|
docker-compose down
|
|
|
|
# Down and remove volumes
|
|
docker-compose down --volumes
|
|
|
|
# Down and remove images
|
|
docker-compose down --rmi <all|local>
|
|
|
|
# check docker resources usage
|
|
docker stats
|
|
```
|
|
## 开机后要运行的程序
|
|
|
|
```shell
|
|
# monitoring
|
|
# https://glances.readthedocs.io/en/latest/index.html
|
|
glances
|
|
|
|
# https://github.com/pldubouilh/gossa
|
|
cd ~/softwares/gossa
|
|
docker-compose up
|
|
|
|
# https://docs.syncthing.net/intro/getting-started.html
|
|
cd ~/softwares/syncthing
|
|
docker-compose up
|
|
|
|
# https://miniflux.app/index.html
|
|
cd ~/softwares/miniflux
|
|
docker compose up
|
|
|
|
# https://docs.gitea.com/installation/install-with-docker-rootless
|
|
cd ~/softwares/gitea
|
|
docker-compose up
|
|
|
|
# https://shaarli.readthedocs.io/en/master/Docker.html
|
|
cd ~/softwares/shaarli
|
|
sh docker-up.sh
|
|
``` |