fix docker lifecycle operations and creating container log file