Run/Debug Configuration: Docker
Docker run configurations enable you to integrate Docker into your development process. Settings depend on the type of the Docker run configuration relevant to your needs. Some settings are common, while others are specific in each case.
For more information, see Running Docker images.
Common settings
The following settings are available for any type of Docker run configuration:
Item | Description |
---|---|
Name | Specify the name of the run configuration. |
Share | Select to share the run configuration through version control. If the checkbox is not selected, the run configuration settings are stored in If the checkbox is selected, the settings are stored in a separate For more information, see Working with projects. |
Single instance only | Select to run only one instance of the run configuration at a time. |
Server | Select the Docker server configuration to be used. To create a new configuration or edit an existing one, click |
Docker Image run configuration settings
The following settings are available for the Docker Image run configuration:
Item | Description |
---|---|
Image ID | Specify the ID of the image to run. |
Container name | Specify an optional name for the container. If empty, Docker will generate a random name for the container. |
Entrypoint | Override the default ENTRYPOINT set by the image. Similar to using the --entrypoint option with docker run . |
Command | Override the default CMD set by the image. Similar to specifying the optional COMMAND argument after docker run . |
Publish exposed ports to the host interfaces | Select All to expose all container ports to the host or select Specify to specify which container ports to bind. |
Bind ports | Specify the list of port bindings. Similar to using the -p option with docker run . |
Bind mounts | Specify the list of volume bindings. Similar to using the -v option with docker run . |
Environment variables | Specify the list of environment variables. Similar to using the -e option with docker run . |
Command line options | Specify arbitrary options for the docker run command. |
Command preview | Preview the resulting command that will be used to execute the run configuration. |
Docker-compose run configuration settings
The following settings are available for the Docker-compose run configuration:
Item | Description |
---|---|
Compose file | Specify the Docker Compose file to use for this run configuration. |
Dockerfile run configuration settings
The following settings are available for the Dockerfile run configuration:
Item | Description |
---|---|
Dockerfile | Specify the Dockerfile to be used for this run configuration. |
Image tag | Specify the name and tag for the built image. Similar to using the -t option with docker build . |
Build args | Override the default build-time variables. Similar to using the --build-arg option with docker build . |
Run built image | Select to run a container based on the built image. |
Container name | Specify an optional name for the container. If empty, Docker will generate a random name for the container. |
Entrypoint | Override the default ENTRYPOINT set by the image. Similar to using the --entrypoint option with docker run . |
Command | Override the default CMD set by the image. Similar to specifying the optional COMMAND argument after docker run . |
Publish exposed ports to the host interfaces | Select All to expose all container ports to the host or select Specify to specify which container ports to bind. |
Bind ports | Specify the list of port bindings. Similar to using the -p option with docker run . |
Bind mounts | Specify the list of volume bindings. Similar to using the -v option with docker run . |
Environment variables | Specify the list of environment variables. Similar to using the -e option with docker run . |
Command line options | Specify arbitrary options for the docker run command. |
Command preview | Preview the resulting command that will be used to execute the run configuration. |
Before launch
Specify tasks to perform before starting the run configuration.
Item | Shortcut | Description |
---|---|---|
![]() | Alt+Insert | Add a task to the list, for example:
|
![]() | Alt+Delete | Remove the selected task from the list. |
![]() | Enter | Edit the selected task. |
![]() ![]() | Alt+Up/Alt+Down | Move the selected task one line up or down in the list, changing the order for performing the tasks. |
Show this page | Select to show the run configuration settings before starting it. | |
Activate tool window | Select to open the Docker tool window before starting the run configuration. |
Toolbar
Item | Shortcut | Description |
---|---|---|
![]() | Alt+Insert | Create a run/debug configuration. |
![]() | Alt+Delete | Delete the selected run/debug configuration. |
![]() | Ctrl+D | Create a copy of the selected run/debug configuration. |
![]() | View and edit the default settings for the selected run/debug configuration. | |
![]() ![]() | Alt+Up/Alt+Down | Move the selected run/debug configuration up and down in the list. The order of configurations in the list defines the order in which the configurations appear in the corresponding list on the main toolbar. |
![]() | You can group run/debug configurations by placing them into folders. To create a folder, select the configurations to be grouped and click Then, to move a configuration into a folder, between the folders or out of a folder, use To remove grouping, select a folder and click See also, Creating Folders and Grouping Run/Debug Configurations. |