Force tag (-f) option removed

Expected behavior

docker tag -f foo_image bar_registry.docker.com/foo_image:latest

Actual behavior

docker tag -f foo_image bar_registry.docker.com/foo_image:latest
unknown shorthand flag: ‘f’ in -f
See ‘docker tag --help’.

Information

Client:
Version: 1.12.0-rc4
API version: 1.24
Go version: go1.6.2
Git commit: e4a0dbc
Built: Wed Jul 13 03:28:51 2016
OS/Arch: darwin/amd64
Experimental: true

Server:
Version: 1.12.0-rc4
API version: 1.24
Go version: go1.6.2
Git commit: e4a0dbc
Built: Wed Jul 13 03:28:51 2016
OS/Arch: linux/amd64
Experimental: true

MacBook Pro (Retina, 13-inch, Early 2015)
3.1 GHz Intel Core i7
16 GB 1867 MHz DDR3

OSX El Capitan
Version 10.11.5 (15F34)

Steps to reproduce the behavior

  1. Create an image named ‘foo_image’
  2. docker tag -f foo_image bar_registry.docker.com/foo_image:latest

A couple of releases have spit out warnings from docker tag -f, and Docker 1.12 is finally removing it. This has caused me to have to update some scripts to figure out if they’re using a version of Docker where it’s required vs. one where it’s disallowed (see also Docker 1.12 breaks “docker tag -f” in scripts).

Since Docker 1.10, the short answer is that docker tag -f doesn’t do anything from docker tag without -f, and if you’re sure you have a new enough version of Docker, you can just remove the -f option.