mirror of
https://github.com/hashicorp/packer.git
synced 2026-06-10 09:10:27 -04:00
builder/docker: error if DOCKER_HOST is set
This commit is contained in:
parent
933c747a3d
commit
f32d9879dc
2 changed files with 6 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ BUG FIXES:
|
|||
* builder/amazon/all: Fix race condition on setting tags. [GH-1367]
|
||||
* builder/amazon/all: More desctriptive error messages if Amazon only
|
||||
sends an error code. [GH-1189]
|
||||
* builder/docker: Error if `DOCKER_HOST` is set.
|
||||
* builder/docker: Remove the container during cleanup. [GH-1206]
|
||||
* builder/docker: Fix case where not all output would show up from
|
||||
provisioners.
|
||||
|
|
|
|||
|
|
@ -220,5 +220,10 @@ func (d *DockerDriver) Verify() error {
|
|||
return err
|
||||
}
|
||||
|
||||
if v := os.Getenv("DOCKER_HOST"); v != "" {
|
||||
return fmt.Errorf(
|
||||
"DOCKER_HOST cannot be set with the Packer Docker builder.")
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue