PyCharm 2017.1 Help

Docker

File | Settings | Build, Execution, Deployment | Docker for Windows and Linux
PyCharm | Preferences | Build, Execution, Deployment | Docker for macOS

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


Docker

Specify the settings for accessing the Docker API and Docker Compose.

ItemDescription
NameThe name of the configuration.
API URLThe Docker API URL. Depending on your Docker version and operating system:
  • Docker for Windows: tcp://localhost:2375
  • Docker for macOS or Linux: unix:///var/run/docker.sock
  • Docker Toolbox for Windows or macOS (deprecated): https://192.168.99.100:2376
Certificates folderThe path to the certificates folder - if you are using the Docker Toolbox. Depending on your Docker version and operating system:
  • Docker for Windows, macOS or Linux: This field must be empty.
  • Docker Toolbox for Windows (deprecated): <your_home_directory>\.docker\machine\machines\default
  • Docker Toolbox for macOS (deprecated): usually, <your_home_directory>/.docker/ or its subdirectory.
Docker Compose executabledocker-compose or an actual path to docker-compose.exe or docker-compose.sh (normally located in the bin folder of the Docker installation directory).

The default setting docker-compose for Docker Compose executable is fine if:

  • The actual name of the executable file is docker-compose.
  • The path to the directory where the file is located is included in the environment variable Path.

See Docker Compose.

Import credentials from Docker Machine If you want to import credentials for accessing the Docker Remote API from Docker Machine, select the check box and specify the associated settings:
  • Docker Machine executable. docker-machine or an actual path to docker-machine.exe (normally located in the Docker Toolbox installation folder).

    The default setting docker-machine is fine if:

    • The actual name of the executable file is docker-machine.
    • The path to the directory where the file is located is included in the environment variable Path.

    Detect. When you click Detect, PyCharm sets Docker Machine executable to docker-machine, tries to detect the executable file and, if a success, shows its version.

  • Machine. After specifying the Docker Machine executable or clicking Detect, the list contains the Docker Machines available locally, and you can select the one to be used.

See also, Docker.

Toolbar

Use /help/img/idea/2017.1/new.png to create configurations and /help/img/idea/2017.1/delete.png to delete them.

See Also

Procedures:

Last modified: 26 July 2017