# Run SourceKit-LSP in Docker/Vagrant

**URL:** <https://forums.swift.org/t/run-sourcekit-lsp-in-docker-vagrant/20654>\
**Category:** SourceKit-LSP\
**Tags:** windows, sourcekit, docker\
**Created:** [February 19, 2019, 5:20pm UTC](https://forums.swift.org/t/run-sourcekit-lsp-in-docker-vagrant/20654 "2019-02-19T17:20:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![satishb](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@satishb](https://forums.swift.org/u/satishb)\
**Post date:** [February 19, 2019, 5:20pm UTC](https://forums.swift.org/t/run-sourcekit-lsp-in-docker-vagrant/20654/1 "2019-02-19T17:20:39Z")

</div>

You can use VSCode on Windows(or any os) while running and debugging swift on a Docker/Vagrant Ubuntu Server.  
Also, same implementations can be used in Cloud IDE's (Che or theia)

Possible Solutions:

1. Using TCP/IPC (VSCode Langauge Client's NodeModule, not Sure Requires more Reserch)  
-Sourcegraph runs LSP servers as a remote service using plain old TCP.  
-[vscode-languageserver-node/main.ts at release/server/5.3.0-next.1 · microsoft/vscode-languageserver-node · GitHub](https://github.com/Microsoft/vscode-languageserver-node/blob/release/server/5.3.0-next.1/client/src/main.ts#L278)
2. SSH
3. Using the vagrant-exec extension to execute LSP commands in Ubuntu-Swift-Vagrant

@blangmuir, @krzyzanowskim,

---

<div class="post-metadata">

**Author:** ![blangmuir](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/blangmuir/32/277_2.png) [@blangmuir](https://forums.swift.org/u/blangmuir)\
**Post date:** [February 20, 2019, 3:18pm UTC](https://forums.swift.org/t/run-sourcekit-lsp-in-docker-vagrant/20654/2 "2019-02-20T15:18:46Z")

</div>

I've also used a host X11 (Xquartz on macOS) with the application running in Docker.
