[GH-ISSUE #1865] [BUG]: generating a docker image locally,it always reports that the port cannot be used #1214

Closed
opened 2026-02-22 18:23:44 -05:00 by yindo · 1 comment
Owner

Originally created by @Yongliao666 on GitHub (Jul 14, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1865

How are you running AnythingLLM?

Docker (local)

What happened?

[BUG]: After compiling and generating a docker image locally, when generating a container, it always reports that the port cannot be used, but the port is clearly not occupied
image

Are there known steps to reproduce?

image

Originally created by @Yongliao666 on GitHub (Jul 14, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1865 ### How are you running AnythingLLM? Docker (local) ### What happened? [BUG]: After compiling and generating a docker image locally, when generating a container, it always reports that the port cannot be used, but the port is clearly not occupied ![image](https://github.com/user-attachments/assets/f91ad995-c34b-456d-b9e7-90e4a1cda574) ### Are there known steps to reproduce? ![image](https://github.com/user-attachments/assets/f91ad995-c34b-456d-b9e7-90e4a1cda574)
yindo added the possible bug label 2026-02-22 18:23:44 -05:00
yindo closed this issue 2026-02-22 18:23:44 -05:00
Author
Owner

@timothycarambat commented on GitHub (Jul 14, 2024):

You have a process already running on port 3001, you need to kill that process or just change your command to use another port 3002:3001. Also the command you are using will lead to you not being able to use the web scraper and you will lose all your data on container rebuild. Use the official command so you dont run into issues!

# Run this in powershell terminal
$env:STORAGE_LOCATION="$HOME\Documents\anythingllm"; `
If(!(Test-Path $env:STORAGE_LOCATION)) {New-Item $env:STORAGE_LOCATION -ItemType Directory}; `
If(!(Test-Path "$env:STORAGE_LOCATION\.env")) {New-Item "$env:STORAGE_LOCATION\.env" -ItemType File}; `
docker run -d -p 3001:3001 `
--cap-add SYS_ADMIN `
-v "$env:STORAGE_LOCATION`:/app/server/storage" `
-v "$env:STORAGE_LOCATION\.env:/app/server/.env" `
-e STORAGE_DIR="/app/server/storage" `
mintplexlabs/anythingllm;
@timothycarambat commented on GitHub (Jul 14, 2024): You have a process already running on port 3001, you need to kill that process or just change your command to use another port `3002:3001`. Also the command you are using will lead to you not being able to use the web scraper and you will lose all your data on container rebuild. Use the official command so you dont run into issues! ```powershell # Run this in powershell terminal $env:STORAGE_LOCATION="$HOME\Documents\anythingllm"; ` If(!(Test-Path $env:STORAGE_LOCATION)) {New-Item $env:STORAGE_LOCATION -ItemType Directory}; ` If(!(Test-Path "$env:STORAGE_LOCATION\.env")) {New-Item "$env:STORAGE_LOCATION\.env" -ItemType File}; ` docker run -d -p 3001:3001 ` --cap-add SYS_ADMIN ` -v "$env:STORAGE_LOCATION`:/app/server/storage" ` -v "$env:STORAGE_LOCATION\.env:/app/server/.env" ` -e STORAGE_DIR="/app/server/storage" ` mintplexlabs/anythingllm; ```
yindo changed title from [BUG]: generating a docker image locally,it always reports that the port cannot be used to [GH-ISSUE #1865] [BUG]: generating a docker image locally,it always reports that the port cannot be used 2026-06-05 14:39:33 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#1214