2019-10-01 11:59:48 -04:00
|
|
|
---
|
|
|
|
description: |
|
2020-03-18 18:46:47 -04:00
|
|
|
Communicators are the mechanism Packer uses to upload files, execute
|
|
|
|
scripts, etc. with the machine being created.
|
2019-10-01 11:59:48 -04:00
|
|
|
page_title: Communicators
|
2020-04-02 19:39:47 -04:00
|
|
|
sidebar_title: Communicators
|
2019-10-01 11:59:48 -04:00
|
|
|
---
|
|
|
|
|
|
|
|
# Communicators
|
|
|
|
|
|
|
|
Communicators are the mechanism Packer uses to upload files, execute scripts,
|
|
|
|
etc. with the machine being created.
|
|
|
|
|
|
|
|
Communicators are configured within the
|
2020-03-31 17:40:07 -04:00
|
|
|
[builder](/docs/templates/builders) section. Packer currently supports
|
2019-10-01 11:59:48 -04:00
|
|
|
three kinds of communicators:
|
|
|
|
|
2020-03-18 18:46:47 -04:00
|
|
|
- `none` - No communicator will be used. If this is set, most provisioners
|
|
|
|
also can't be used.
|
2019-10-01 11:59:48 -04:00
|
|
|
|
2020-03-31 17:40:07 -04:00
|
|
|
- [ssh](/docs/communicators/ssh) - An SSH connection will be established to the machine. This is
|
2020-03-18 18:46:47 -04:00
|
|
|
usually the default.
|
2019-10-01 11:59:48 -04:00
|
|
|
|
2020-03-31 17:40:07 -04:00
|
|
|
- [winrm](/docs/communicators/winrm) - A WinRM connection will be established.
|
2019-10-01 11:59:48 -04: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.
|