diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh
index 948324ab3e8820cb5028713f59cd5273ebf3959a..5fe6e7d88ec6043fc8531eb9ab3699c577a0a0da 100755
--- a/docker-entrypoint.sh
+++ b/docker-entrypoint.sh
@@ -1,6 +1,7 @@
 #!/usr/bin/env bash
 set -Eeo pipefail
 
+mkdir /seafile-data
 seaf-cli init -d /seafile-data
 if [ -z "$OTP_TOKEN" ]; then
   seaf-cli sync -l "$LIBRARY" -s "$SERVER" -d "/sync" -u "$EMAIL" -p "$PASSWORD" --tfa $(oathtool --totp -b "$OTP_TOKEN")