remove deprecated syntax for docker commit

Close #6732