IntelliJ IDEA 2017.3 Help

Docker

File | Settings | Build, Execution, Deployment | Docker for Windows and Linux
IntelliJ IDEA | Preferences | Build, Execution, Deployment | Docker for macOS
Ctrl+Alt+S settings


For the Docker page to be available, the Docker integration plugin must be installed.


Specify the settings for accessing the Docker API. If you are going to use Docker Compose, make sure that the Docker Compose executable setting on the Docker | Tools page is correct.

See also,. Docker how tos...

ItemDescription
NameThe name of the configuration.
Connect to Docker daemon withDocker for Mac. For macOS only: If you are using Docker for macOS, this is the recommended connection option.

Unix socket. For Linux only: This is the recommended connection option for Linux.

Docker Machine. If you are using Docker Toolbox for Windows or macOS, this is the recommended option for connecting to Docker API.

The Connection successful message should appear right away. If it doesn't, check your Docker Machine executable setting on the Docker | Tools page.

If you have more than one Docker Machine installed and running, use the list to select which of the Machines should be used.

TCP socket. If you are using Docker for Windows, this is the usual connection option. This option will also work for Linux, Docker for macOS and Docker Toolbox.

  • Engine API URL. Depending on the Docker version and operating system:
    • Docker for Windows: tcp://localhost:2375

      IMPORTANT! In the General section of your Docker settings, turn on the Expose daemon on tcp://localhost:2375 without TLS option.

    • Docker for macOS or Linux: unix:///var/run/docker.sock
    • Docker Toolbox for Windows or macOS: https://192.168.99.100:2376
  • Certificates folder The path to the certificates folder. Depending on your Docker version and operating system:
    • Docker for Windows, macOS or Linux: This field must be empty.
    • Docker Toolbox for Windows: <your_home_directory>\.docker\machine\machines\default
    • Docker Toolbox for macOS: usually, <your_home_directory>/.docker/ or its subdirectory.

    Mind the following: since the Certificates folder field specifies any folder with certificates, this field corresponds to the environment variable DOCKER_CERT_PATH. See details at Client modes page of the Docker documentation.

Path mappingsFor Windows and macOS: Specify the host - virtual machine path mappings for folders that you are going to map to container volumes.

Use edit1 to edit an existing mapping, or add to create a new one. In the dialog that opens:

  • Local path. The path to a local folder that you want to make available for volume bindings.
  • Virtual machine path. The corresponding directory path in the Docker virtual machine's file system.
Last modified: 12 December 2017

See Also