LuaLS / LuaLS/lua-language-server
Need help with running lua lsp in a docker container
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 4.4k
- Forks
- 442
- PR merge metrics
- No merged PRs in 30d
Description
Hi, this is what I am trying to do:
- I have a web editor made with react and monaco editor
- The editor is for writing lua code
- I want lua lsp autocompletions in the web editor
- I am trying to run the lua-language-server in a docker container which I hope to later run on a VPS and make the editor frontend connect to this remote lsp server to provide autocompletions
Setup:
- I used the homebrew docker image to install lua-language-server https://hub.docker.com/r/homebrew/brew
Issue faced:
When I run just the `lua-language-server` command, it seems to be running, but when I specify a socket, it does not start and gives a connection refused error.


moreover when I install the lsp on my mac machine and run the same command, it doesnot throw and error and seems to run silently

If anyone needs any additional details please let me know
Dockerfile:
```
# Use the official Homebrew Docker image as the base
FROM homebrew/brew:latest
# Install lua-language-server
RUN brew install lua-language-server
# Verify installation
RUN lua-language-server --version
# Set working directory
WORKDIR /workspace
# ENTRYPOINT ["lua-language-server --socket=5000"]
# CMD ["lua-language-server", "--socket=5000"]
EXPOSE 5000
CMD ["bash"]
```
tried both ENTRYPOINT and CMD, same results, which is why I used bash and interactive mode to debug
Thanks
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Dockerfile and the two invocation forms shown for lua-language-server, then reproduce the connection-refused behavior with --socket=5000 inside the Homebrew image. Compare that result with the silent macOS run and determine the documented container invocation and connection behavior needed for the remote editor setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, lua
- Domain
- devops, devtools
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100