搭建自己的搜索网站
更新环境
sudo apt-get update -y && sudo apt-get upgrade -y
安装 Docker
curl -fsSL https://get.docker.com | sh
curl -L "https://github.com/docker/compose/releases/download/v2.18.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
自启动docker
sudo systemctl enable --now docker
一键脚本
docker run -dit --name searxng -v $PWD/searxng:/etc/searxng -e TZ=Asia/Shanghai -p 8180:8080 --hostname searxng --restart always searxng/searxng:latest
后台配置
/root/searxng
打开所在目录 替换sea
如果安装出现 docker-ce : Depends: containerd.io (>= 1.4.1) but it is not going to be installed E: Unable to correct problems, you have held broken packages.
回复删除解决方法如下:
对我有用的解决方案是在download.docker.com上安装最新版本的containerd.io 。
curl -O https://download.docker.com/linux/debian/dists/buster/pool/stable/amd64/containerd.io_1.4.3-1_amd64.deb
sudo apt install ./containerd.io_1.4.3-1_amd64.deb
然后重新安装docker即可