在群晖通过docker命令部署halo,结果如下:
root@synhome:~# docker run \
> -it -d \
> --name halo \
> -p 8090:8090 \
> -v ~/.halo2:/root/.halo2 \
> halohub/halo:2.7 \
> --halo.external-url=http://localhost:8090/ \
> --halo.security.initializer.superadminusername=bkzyadmin \
> --halo.security.initializer.superadminpassword=girWqbI16GLWkp8bXWnh
192d6437ee614cf679967d5edbbf5805fbd9ffe9f3f3283ca1c0d3f4037e5750
docker: Error response from daemon: Bind mount failed: '/root/.halo2' does not exists.
再次尝试通过编辑好docker-compose.yml,通过命令docker-compose up -d部署,返回结果:
ERROR: .UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb5 in position 586: invalid start byte