fix --run in docker commit

Fixes #4046
Fixes #4044 

Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)