Running Typesense in Docker Container on Windows 10
TLDR Christian had issues running Typesense in Docker due to an unrecognized data directory. Jason suggested a solution to fix the file path issue, which Christian successfully implemented using Windows Powershell.
Oct 28, 2022 (14 months ago)
Christian
03:04 PMJason
03:19 PMJason
03:19 PMChristian
03:46 PMChristian
03:47 PM$ docker run -p 8108:8108 -v $(pwd)/typesense-data:/data typesense/typesense:0.23.1 --data-dir=/data --api-key=$TYPESENSE_API_KEY --enable-cors
I20221028 14:53:03.157213 1 typesense_server_utils.cpp:352] Starting Typesense 0.23.1
I20221028 14:53:03.157263 1 typesense_server_utils.cpp:355] Typesense is using jemalloc.
E20221028 14:53:03.157555 1 typesense_server_utils.cpp:373] Typesense failed to start. Data directory C:/Program Files/Git/data does not exist.
Christian
03:47 PMChristian
03:47 PM$ docker run -p 8108:8108 -v $(pwd)/typesense-data:/data typesense/typesense:0.23.1 --data-dir=$TYPESENSE_DATA_DIR --api-key=$TYPESENSE_API_KEY --enable-cors
I20221028 14:53:03.157213 1 typesense_server_utils.cpp:352] Starting Typesense 0.23.1
I20221028 14:53:03.157263 1 typesense_server_utils.cpp:355] Typesense is using jemalloc.
E20221028 14:53:03.157555 1 typesense_server_utils.cpp:373] Typesense failed to start. Data directory C:/source/typesense-data does not exist.
Christian
03:48 PMJason
04:12 PMI’d love to update our docs based on that
Nov 09, 2022 (13 months ago)
Christian
08:42 PMdocker run -p 8108:8108 -v $PWD/typesense-data:/data typesense/typesense:0.23.1 --data-dir=/data --api-key=$TYPESENSE_API_KEY --enable-cors
Jason
08:43 PMChristian
08:43 PMTypesense
Indexed 3005 threads (79% resolved)
Similar Threads
Troubleshooting Typesense Server Error on Docker
vikram was facing an error with Typesense Server Docker container and loss of data on restart. Kishore Nallan guided to avoid mounting tmp directory from localhost and explained stopping the Docker container.
Deploying Typesense in GCP Cloud Run
Christian had difficulties obtaining an API key for deploying Typesense in GCP Cloud Run. Kishore Nallan guided on API key creation when setting up Typesense server and suggested checking the Typesense self-hosting guide. Christian decided to run the Typesense in Kubernetes instead of Cloud Run. Nasim thanked Christian for sharing findings.
"Resolving Startup Issue with Typesense Single Replica Set in Local `K8s` Setup"
Vishal encountered issues starting a Typesense single replica set due to directory permission issues. Kishore Nallan suggested checking if the volume was accessible for writes. Vishal resolved the problem by adjusting permissions on the host.
Trouble with Typesense Memory Usage when Restarting Docker Container
Blend reports increased memory usage when restarting Docker with Typesense, information shared with Jason and Kishore Nallan. Potential data edge case identified as potential cause, although resolution undetermined.
Troubleshooting Typesense Server Start-Up Process with Docker
gun asked how to start the Typesense server using Docker, which Jason explained. Monk added it also works on Windows 10 without Docker and agreed to add these details to documentation.