PhpStorm 2024.3 Help

Start Dev Container from scratch

You can create a new Dev Container using a devcontainer.json file and the configuration options it offers.

The easiest way to start is to pull an image (a predefined template) for your devcontainer.json file from a container registry (the collection of repositories with the predefined images).

Create a Dev Container

  1. Open a project in PhpStorm.

  2. In the Project view, right-click the name of your project and select New | Dev Container Config.

  3. In the dialog that opens, select the necessary template in the Dev Container Template field.

    Create a new Dev Container
  4. Click OK.

    PhpStorm generates the .devcontainer directory with the devcontainer.json file that contains the container description. You can customize the configuration as needed.

    Dev Container result
  5. In the left gutter, click Create Dev Container and select Create Dev Container and Mount Sources to build your Dev Container.

Last modified: 09 October 2024