玩客云Docker搭建私有笔记服务Trilium

Trilium,是一个基于 electron、跨平台的分层级笔记应用,主要使用场景是建立个人知识库。

安装

mkdir -p /data/trilium/data
docker run -d \
  --name trilium \
  --restart=always \
  --log-opt max-size=1m \
  -v /data/trilium/data:/root/trilium-data \
  -e TRILIUM_DATA_DIR=/root/trilium-data \
  -p 8181:8080 \
  nriver/trilium-cn:latest

Unable to find image 'nriver/trilium-cn:latest' locally
latest: Pulling from nriver/trilium-cn
2387a44129d2: Pull complete
2b1da8e2f7c5: Pull complete
fe7e21d092c6: Pull complete
6de239c967be: Pull complete
289f2b695bb4: Pull complete
4f4fb700ef54: Pull complete
2f7f70415fef: Pull complete
Digest: sha256:ca85b660b0c50b9b7d5b74a16599a5a2851c976b369f2b22c82d756f11b07e2a
Status: Downloaded newer image for nriver/trilium-cn:latest
ee28c8df9999bf55d046c2ebf20ead93d7b9e6aedc0acbf563cd7eda0b7ed7be

完成。
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ee28c8df9999 nriver/trilium-cn:latest "docker-entrypoint.s…" 22 seconds ago Up 10 seconds 0.0.0.0:8181->8080/tcp, [::]:8181->8080/tcp trilium

从IP:8181访问