docker commit --change support

Replaces #8332 fixing an issue with returning a hard error when there is an invalid command for commit.


small nit: using `map[string]struct{}{}` with an ok check is probably better here since we will never yield false.