Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 1.72 KB

docker-language-server.md

File metadata and controls

29 lines (15 loc) · 1.72 KB

Docker Language Server

To get language support for files from the Docker ecosystem (Dockerfiles, Compose files, and Bake files), you can integrate the Docker Language Server into your JetBrains IDE by following the steps below.

Docker Language Server detecting a problem in a Dockerfile

Docker Language Server providing editor features for a Bake file

Install the Language Server

  1. Download a language server binary from GitHub.

  2. Place the binary somewhere that is within your PATH variable lookup.

  3. Rename it from docker-language-server-$OS-$ARCH-v$VERSION to simply docker-language-server.

Configuring your JetBrains IDE

  1. Open the New Language Server Dialog. This can usually be found under the IDE settings related to Language Server Protocol (LSP). For more information, refer to the New Language Server Dialog documentation.

  2. Select Docker Language Server as the template from the available options.

  3. Optional: You may also customize the Mappings section according to your preferences.

  4. Optional: You may also customize the Configuration section according to your preferences.

  5. Click OK to apply the changes. You should now have language support for Dockerfiles, Compose files, and Bake files enabled in your IDE:

Docker Language Server output in the LSP console