IntelliJ IDEA 2024.1 Help

Docker run targets

Docker is great for running and debugging your application, because you can replicate any environment in a container. For example, the reporter of an issue may provide you with a specific Docker image where they are able to reproduce the problem. To run or debug your application in a Docker container, you can use Run targets.

Create a Docker run target

  1. Press Ctrl+Alt+S to open the IDE settings and then select Build, Execution, Deployment | Run Targets.

  2. Click The Add Target On button and select Docker.

  3. Configure and create the Docker target as described in Run Targets: Docker.

Docker run target

Run or debug your application on a Docker run target

Java application with Docker run target

For a specific example, refer to Run and debug a Java application with Docker.

Last modified: 09 April 2024