JetBrains Fleet
 

Docker run configurations

Last modified: 28 January 2025

JetBrains Fleet has run configurations for the following Docker commands:

Builds an image from a Dockerfile. For more information about the command, refer to the official Docker documentation.

  1. Press Ctrl0R. In the popup that appears, select Create Run Configurations.

    Create Run Configurations option in the Run and Debug popup

    .fleet/run.json opens. This file contains the definitions for the run configurations in the workspace. The file uses JSON format.

  2. In the configurations array, define an object with the type property set to docker-build and provide the following information in it:

    name

    A human-readable name that identifies the run configuration

    file

    The path or the URL of the Dockerfile to build.

    buildOptions (optional)

    The options supplied to the build command.

    For example:

    {
    "configurations": [
    {
    "type": "docker-build",
    "name": "build my web app",
    "file": "$PROJECT_DIR$/Dockerfile",
    "buildOptions": "-t example-node-app"
    }
    ]
    }

tip

Use the code completion CtrlSpace to explore the general run configuration options. For more information on them, refer to Run configurations.