WebStorm integration with Docker allows you to run your applications in variously configured development environments deployed in Docker containers.
Make sure that the following prerequisites are met:
- Docker is installed, as described on the page Docker Docs. You can install Docker on the various platforms:
Before you start working with Docker, make sure that the Docker integration plugin is enabled. The plugin is bundled with WebStorm and is activated by default. If the plugin is not activated, enable it on the Plugins page of the Settings / Preferences Dialog as described in Enabling and Disabling Plugins.
Overview of Docker support
The Docker integration plugin adds the following to WebStorm:
- Docker configurations. These are named sets of settings for accessing the Docker Engine API and Docker Compose.
You can create a Docker configuration in two ways:
- Create Docker Deployment run/debug configurations. They let you download and build Docker images, and create and start Docker containers.
To create a Docker Deployment run/debug configuration, do the following: . See the run configuration settings.
- Docker tool window () that lets you manage your Docker images and containers.
- Docker Registry configurations that represent your Docker image repository user accounts.
- Additional Docker option in the Configure Node.js Remote Interpreter Dialog for configuring integration with remote Node.js interpreters running in a Docker container.
Working with Docker: Process overview
- Install Docker and start the Docker daemon (on Windows and macOS - along with the Docker VM in which it runs). For the instructions, see Get Started with Docker.
- Make sure the Docker integration plugin is enabled.
- Create a Docker configuration. You can do that:
- Use the Docker Tool Window to manage your Docker images, containers and deployed applications.
- Configure the Node.js interpreters running in a Docker container, see Configuring Node.js Interpreters.
- Create a Node.js run/debug configuration and configure the Docker container settings, see Running and Debugging Node.js.