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

Remove deprecated -f flag on docker tag #23090

Merged

Conversation

yongtang
Copy link
Member

@yongtang yongtang commented May 29, 2016

The -f flag on docker tag has been deprecated in docker 1.10 and is expected to be removed in docker 1.12.
This fix removed the -f flag on docker tag and also updated deprecated.md.

- Description for the changelog

The deprecated -f flag on docker tag has been removed.

NOTE: A separate pull request for engine-api has been opened to cover the related changes:
docker/engine-api#239

Signed-off-by: Yong Tang yong.tang.github@outlook.com

@thaJeztah
Copy link
Member

thanks! can you check the bash/zsh completion scripts as well? not sure if they still contain this flag

@thaJeztah
Copy link
Member

also /cc @dnephin in case your PR needs to be updated

@yongtang
Copy link
Member Author

Thanks @thaJeztah. I checked contrib/completion/bash/docker and contrib/completion/zsh/_docker, didn't find the reference of -f/-force for docker tag.

@yongtang yongtang force-pushed the 05292016-remove-deprecated-docker-tag-f branch from 9678774 to 09dfe60 Compare May 29, 2016 16:09
@albers
Copy link
Member

albers commented May 29, 2016

@thaJeztah -f was removed from the completions in #19642, so we are clean here.

@thaJeztah
Copy link
Member

That's for checking! (Was typing on my phone, so wasn't able to check myself)

LGTM

@thaJeztah
Copy link
Member

@yongtang docker/engine-api#239 was merged, so you can update the vendored engine-API files

@yongtang yongtang force-pushed the 05292016-remove-deprecated-docker-tag-f branch from 2242a78 to 61d7436 Compare May 30, 2016 23:02
@yongtang
Copy link
Member Author

Thanks @thaJeztah the pull request has been updated to include the engine-api changes. Let me know if there are any issues.

@yongtang yongtang force-pushed the 05292016-remove-deprecated-docker-tag-f branch from 61d7436 to 8b2189a Compare May 30, 2016 23:14
@thaJeztah
Copy link
Member

thanks! LGTM

@vdemeester
Copy link
Member

LGTM 🐼

@vdemeester
Copy link
Member

Moving this to docs-review. Looks like at least /~https://github.com/docker/docker/blob/master/docs/reference/api/docker_remote_api_v1.24.md#tag-an-image-into-a-repository needs some updates

@yongtang
Copy link
Member Author

yongtang commented Jun 1, 2016

Thanks @vdemeester. The related docs docker_remote_api_v1.24.md and docker_remote_api.md has been updated to include the changes in this pull request.

@@ -122,6 +122,7 @@ This section lists each version from latest to oldest. Each listing includes a
* `GET /events` now supports a `reload` event that is emitted when the daemon configuration is reloaded.
* `GET /events` now supports filtering by daemon name or ID.
* `GET /images/json` now supports filters `since` and `before`.
* `POST /images/(name)/tag` now removes deprecated query parameter `force`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thinking of better wording for this, perhaps;

* `POST /images/(name)/tag` no longer has a `force` query parameter. 

@thaJeztah
Copy link
Member

One small suggestion, but LGTM otherwise

@yongtang yongtang force-pushed the 05292016-remove-deprecated-docker-tag-f branch from 3aec367 to 2766118 Compare June 1, 2016 15:44
@yongtang
Copy link
Member Author

yongtang commented Jun 1, 2016

Thanks @thaJeztah the pull request has been updated.

yongtang added 3 commits June 1, 2016 09:44
This fix updates engine-api to 6facb3f3c38717b8f618dcedc4c8ce20d1bfc61e.

This fix is related to moby#23090.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
The -f flag on docker tag has been deprecated in docker 1.10 and
is expected to be removed in docker 1.12.

This fix removed the -f flag on docker tag and also updated
deprecated.md.

NOTE: A separate pull request for engine-api has been opened to
cover the related changes.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
…er tag`.

This fix updates remote API docs for the removal of deprecated `force` in `docker tag`.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
@yongtang yongtang force-pushed the 05292016-remove-deprecated-docker-tag-f branch from 2766118 to 7b08941 Compare June 1, 2016 16:45
@thaJeztah
Copy link
Member

LGTM

ping @vdemeester @SvenDowideit PTAL

@vdemeester
Copy link
Member

LGTM 👼

@vdemeester vdemeester merged commit cbccb19 into moby:master Jun 1, 2016
@yongtang yongtang deleted the 05292016-remove-deprecated-docker-tag-f branch June 2, 2016 14:18
@chriskuehl
Copy link

It seems that there's no backwards-compatible way to force-tag images now that works with Docker versions prior to 1.10 (released only 5 months ago). I've opened #24494 for discussion; please consider waiting to drop this flag, as this will make it very difficult to migrate large Docker deployments to 1.12.

jglick added a commit to jenkinsci/workflow-aggregator-plugin that referenced this pull request Aug 8, 2016
jglick added a commit to jenkinsci/docker-workflow-plugin that referenced this pull request Aug 8, 2016
jglick added a commit to jenkinsci/github-branch-source-plugin that referenced this pull request Aug 8, 2016
jglick added a commit to jenkinsci/parallel-test-executor-plugin that referenced this pull request Aug 8, 2016
odl-github pushed a commit to opendaylight/integration-packaging that referenced this pull request Nov 3, 2016
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants