-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
docker -f deprecation -- now removed #3771
Comments
Here are some examples of me hitting this with Docker 1.12.0 for the OpenDaylight Packer builds. |
moby/moby#23090 is the PR that removed the flag and broke Packer. moby/moby#24494 was a discussion about backwards compatibility, but it didn't seem to consider tools that use This consistently breaks tagging Docker images with Packer 0.10.1 (latest) and Docker 1.12.0 (latest). I tried downgrading Docker to the previous version, 1.11.2.
But I ran into moby/moby#23981 (comment).
Full error logs. I tried moby/moby#23981 (comment) as a workaround, basically an exception in an SELinux rule. That fixed the issue it targeted (
OpenDaylight's Packer builds also work.
So I guess one work-around is to install Docker 1.11.2 and disable SELinux. |
Removing the |
If I read this correctly, docker-tag doesn't work with current packer if using docker 1.12 and there is no plan to fix it? |
@aloukissas the plan is:
That is how most FOSS works *). *) Unless you are on a enterprise contract, then you should contact support. |
@rickard-von-essen the fix is a couple of source code removals in the docker driver file AFAICT (highly unfamiliar with the packer code though). I'll fork and test it out manually - unsure of what the acceptance criteria in this project are (automated testing per PR, perhaps?) |
In the meantime, is there perhaps a way to disable this in the release bits? One needs to install a year-old release of docker engine for packer to work :/ |
Whats wrong with using |
That works. A work-around like this gets Docker 1.12.3 working with Packer 0.10.1. Thanks @rickard-von-essen! |
Docker removed a flag that broke Packer. Docker versions >1.12 fail with force set to true. Packer issue tracking it: hashicorp/packer#3771 PR that broke us: moby/moby#23090 Change-Id: I6f544e5d8353e997d2560fe96e7ae545761c2173 Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
Should be fixed as part of #4186. going to track there and looks like there's a viable workaround (don't use -f) for now |
Docker has deprecated "-f" argument from tagging since v1.10.0
It has been removed in v.1.12.0
See https://docs.docker.com/engine/deprecated/#/f-flag-on-docker-tag
docker-tag post-processor returns the following when using packer with docker 1.12+:
Stderr: unknown shorthand flag: 'f' in -f
The text was updated successfully, but these errors were encountered: