来图书馆,坐在角落里,有些困意

config

os:ununtu 22.04
cpu E5 2680v4
Gpu: GTx650

docker-相册

一个带有ai的项目
先锁内核,28核心耗电量太大

1
sudo apt install docker-compose

docker换源

1
2
sudo mkdir -p /etc/docker
sudo nano /etc/docker/daemon.json

nano/vim 编辑

1
2
3
4
{
"registry-mirrors": [阿里/1panel/utsc
]
}

官网:[https://immich.app/docs/install/docker-compose/]

yml

1
wget -O hwaccel.transcoding.yml https://github.com/immich-app/immich/releases/latest/download/hwaccel.transcoding.yml

.env

wget -O .env https://github.com/immich-app/immich/releases/latest/download/example.env

启动

1
2

sudo docker compose up -d

github代理

https://gitdl.cn/
https://lwb29.pages.dev/-----
替换链接:

https://gitdl.cn/https://github.com/immich-app/immich/releases/latest/download/hwaccel.transcoding.yml

本地代理

1
git config https.proxy https://127.0.0.1:12345

自代理打开 port-bind

锁核心

##先锁15个

1
2
3
for i in {1..15}; do
echo 0 | sudo tee /sys/devices/system/cpu/cpu$i/online
done