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.
-
Download a language server binary from GitHub.
-
Place the binary somewhere that is within your
PATH
variable lookup. -
Rename it from
docker-language-server-$OS-$ARCH-v$VERSION
to simplydocker-language-server
.
-
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.
-
Select Docker Language Server as the template from the available options.
-
Optional: You may also customize the Mappings section according to your preferences.
-
Optional: You may also customize the Configuration section according to your preferences.
-
Click OK to apply the changes. You should now have language support for Dockerfiles, Compose files, and Bake files enabled in your IDE: