GoLand
 
Get GoLand
Because GoLand 2025.1 is still in development, this documentation may not be entirely accurate and is subject to change.

Start Dev Container inside IDE

Last modified: 19 February 2025

You can open a local project that has the .devcontainer folder with the devcontainer.json file in the root inside GoLand and start a Dev Container from the IDE by using Docker. The IDE lets you mount or clone the sources into Dev Container.

You can also start a Dev Container for a remote project.

When you mount sources, your local project directory is mounted (linked) into the container, and any changes made inside the container reflect in your local files and vice versa. This process is longer than the Create Dev Container and Clone Sources action but might be helpful for development workflows where you want to edit files using your local IDE while running them in the container.

Create Dev Container and mount sources

  1. Open your project with the devcontainer.json file inside the IDE.

  2. Open the devcontainer.json file in the editor.

  3. In the left gutter, click Create Dev Container, select Create Dev Container and Mount Sources and select the backend IDE with which you want to work inside the container.

    note

    If you have the all-product-pack license, you can choose the backend IDE that differs from your current local one. For example, if you want to run a Go-based project inside the Dev Container, you can select Goland as the backend IDE.

    Mount sources
  4. The process of creating a Dev Container is displayed in the Services tool window.

    After the Dev Container is created, click Connect.

    Creating a Dev Container

    The container is created and the project is opened in JetBrains Client.