add preserve-on-error for docker