2019-10-01 08:59:48 -07:00
|
|
|
---
|
|
|
|
|
description: |
|
2025-01-29 16:14:35 -08:00
|
|
|
Communicators are remote-access programs Packer uses to perform actions, such as upload files and execute scripts, on the machines Packer creates.
|
|
|
|
|
page_title: Communicators overview
|
2019-10-01 08:59:48 -07:00
|
|
|
---
|
|
|
|
|
|
2025-01-29 16:14:35 -08:00
|
|
|
# Communicators overview
|
2019-10-01 08:59:48 -07:00
|
|
|
|
|
|
|
|
Communicators are the mechanism Packer uses to upload files, execute scripts,
|
|
|
|
|
etc. with the machine being created.
|
|
|
|
|
|
|
|
|
|
Communicators are configured within the
|
2023-01-27 11:47:08 -06:00
|
|
|
[builder](/packer/docs/templates/legacy_json_templates/builders) section. Packer currently supports
|
2019-10-01 08:59:48 -07:00
|
|
|
three kinds of communicators:
|
|
|
|
|
|
2025-01-29 16:14:35 -08:00
|
|
|
- `none`: Packer does not use a communicator and cannot use most provisioners.
|
|
|
|
|
- [`ssh`](/packer/docs/communicators/ssh): Packer establishes an SSH connection to the machine. This is usually the default.
|
|
|
|
|
- [`winrm`](/packer/docs/communicators/winrm): Packer establishes a WinRM connection.
|
2019-10-01 08:59:48 -07:00
|
|
|
|
|
|
|
|
In addition to the above, some builders have custom communicators they can use.
|
|
|
|
|
For example, the Docker builder has a "docker" communicator that uses
|
|
|
|
|
`docker exec` and `docker cp` to execute scripts and copy files.
|
|
|
|
|
|
|
|
|
|
For more details on how to use each communicator, click the links above to be
|
2020-03-18 18:46:47 -04:00
|
|
|
taken to each communicator's page.
|