PhpStorm 2016.3 Help

Docker

Prerequisites

Make sure that the following prerequisites are met:

Overview of Docker support

The Docker integration plugin adds the following to PhpStorm:

  • Docker configurations. These are named sets of settings for accessing the Docker Remote API.
  • Docker Deployment run/debug configurations. They let you download and build Docker images, and create and start Docker containers. Application debugging is supported only for PHP.
  • 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 PHP Remote Interpreter Dialog and in the Configure Node.js Remote Interpreter Dialog.

Working with Docker: Process overview

  1. Install Docker and start the Docker daemon (on Windows and OS X - along with the Docker VM in which it runs). For corresponding instructions, see Get Started with Docker.
  2. Make sure the Docker integration plugin is enabled.
  3. Create a Docker configuration. You can do that:
    • Separately, in the Settings / Preferences dialog: Ctrl+Alt+S | Build, Execution, Deployment | Docker | /help/img/idea/2016.3/new.png | Docker.
    • When creating a Docker Deployment run configuration: Run | Edit Configurations | /help/img/idea/2016.3/new.png | Docker Deployment, etc.
  4. Use the Docker Tool Window to manage your Docker images, containers and deployed applications.
  5. Configure the Node.js and PHP interpeters running in a Docker container, see Configuring Node.js Interpreters and Configuring Remote PHP Interpreters.

See Also

Last modified: 1 December 2016