Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packer occurs error while execute docker-push with docker engine 17ce Version #5507

Closed
kelein opened this issue Oct 25, 2017 · 3 comments · Fixed by #5511
Closed

Packer occurs error while execute docker-push with docker engine 17ce Version #5507

kelein opened this issue Oct 25, 2017 · 3 comments · Fixed by #5511

Comments

@kelein
Copy link

kelein commented Oct 25, 2017

packer version

Packer v1.1.0
==> docker: Running post-processor: docker-push
    docker (docker-push): Logging in...
    docker (docker-push): unknown shorthand flag: 'e' in -e
    docker (docker-push): See 'docker login --help'.

Build 'docker' errored: 2 error(s) occurred:
* Post-processor failed: Error logging in to Docker: Bad exit status: 125
* Post-processor failed: Error logging in to Docker: Bad exit status: 125

docker version

Client:
 Version:      17.10.0-ce
 API version:  1.33
 Go version:   go1.8.3
 Git commit:   f4ffd25
 Built:        Tue Oct 17 19:04:05 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.10.0-ce
 API version:  1.33 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   f4ffd25
 Built:        Tue Oct 17 19:05:38 2017
 OS/Arch:      linux/amd64
 Experimental: false

when I use the same packer build cmd on machine with docker v1.12.6, it build successfully.

Client:
 Version:         1.12.6
 API version:     1.24
 Package version: docker-1.12.6-28.git1398f24.el7.centos.x86_64
 Go version:      go1.7.4
 Git commit:      1398f24/1.12.6
 Built:           Fri May 26 17:28:18 2017
 OS/Arch:         linux/amd64

Server:
 Version:         1.12.6
 API version:     1.24
 Package version: docker-1.12.6-28.git1398f24.el7.centos.x86_64
 Go version:      go1.7.4
 Git commit:      1398f24/1.12.6
 Built:           Fri May 26 17:28:18 2017
 OS/Arch:         linux/amd64

Does Packer v1.1.0 didn't support docker engine version 17.10-ce ?

@rickard-von-essen
Copy link
Collaborator

Don't specify login_email it has been removed from Docker client in 17.10.

@kelein
Copy link
Author

kelein commented Oct 25, 2017

Thanks for you reply, I have removed the login_email variable in my packer build json file, then it build successfully with docker 17.10 CE. 👍

The docker new version realeas note says that:
Remove deprecated --email flag from docker login #docker/cli/143

@rickard-von-essen
Copy link
Collaborator

I think it's about time that we remove this flag.

@kelein kelein changed the title Packer occurs error while execute docker-push with docker engine 17ce Version Packer occurs error while execute docker-push with docker engine 17ce Version Oct 26, 2017
@ghost ghost locked and limited conversation to collaborators Apr 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants