Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions api/client/image/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ func NewTagCommand(dockerCli *client.DockerCli) *cobra.Command {

flags := cmd.Flags()
flags.SetInterspersed(false)
// TODO remove dummy '--force' / '-f' flag for 1.13. It's only there for backward compatibility
var forceTag bool
flags.BoolVarP(&forceTag, "force", "f", false, "Force the tagging even if there's a conflict")
flags.MarkDeprecated("force", "force tagging is now enabled by default. This flag will be removed in Docker 1.13")

return cmd
}
Expand Down