Creating a Docker Deployment run/debug configuration

Having set up Docker, create the run/debug configuration. The Docker Deployment run/debug configuration can be used to download and build the Docker images, to create and start the Docker containers.

First, in the Deployment tab of the Docker Deployment run/debug configuration dialog, specify the following:

Name. Here it is Start Docker.

Server. Here Docker server is selected from the drop-down list.

Deployment. Here Docker Image is selected.

Image ID. Here it is mysite.

Container. Here it is Docker .

Next, in the Container tab, specify the necessary parameters. At this point we are interested in exposing 80 port of the container to be available from our local machine, so we should configure a port binding for that: