* Try to limit docker package version if API version is < 1.39. * Fix error. * Re-combine to one command.