错误报告: .env.example 传递的 ENCRYPTION_KEY 为空,因此原生的 compose 会默默循环,而不是一次性失败
作者: usualdesigner创建于 2026年9月26日更新于 2026年9月26日
重现步骤
mkdir pocket-id && cd pocket-id curl -o Docker-compose.yml https://raw.githubusercontent.com/pocket-id/pocket-id/main/Docker-compose.yml curl -o .env https://raw.githubusercontent.com/pocket-id/pocket-id/main/.env.example
edit APP_URL, leave the rest as shipped
Docker compose up -d Docker compose ps # → Restarting Docker compose logs # → config error: ENCRYPTION_KEY must be at least 16 bytes long (repeating) 预期行为
要么堆栈启动,要么 Docker compose up 失败一次,大声地说出需要设置的内容。读者将两个文件流下来时不会错过这一点。
内容来源: pocket-id/pocket-id