‘X3Pi’ supports’ Docker ‘, but we haven’t seen anything about it in the community. This introduction uses’ Docker ‘to deploy a simple file management service and enrich the small application of’ X3Pi ’
Docker environment configuration
Install Docker
Use ‘apt’ to install ‘docker.io’ directly
sudo apt install docker.io docker-compose -y

Configure the Docker environment
-
Create the Docker Daemon configuration file
sudo touch /etc/docker/daemon.json
-
Modify the file to add a mirror source
sudo vim /etc/docker/daemon.json
-
Content written to the file
{
“registry-mirrors” : [
“https://registry.docker-cn.com”,
“https://docker.mirrors.ustc.edu.cn”,
“https://mirror.ccs.tencentyun.com”
]
} -
Reload daemon and restart docker
sudo systemctl restart docker
sudo systemctl daemon-reload -
Check whether the source switchover is successful
sudo doker info
#!/bin/bash
[ ! -e database.db ] && touch database.db
sudo docker run \
-v ~:/srv \
-v $(pwd)/database.db:/database.db \
-u $(id -u):$(id -g) \
-p 8080:80 \
--restart=always \
filebrowser/filebrowser
