This phase Ib trial studies the safety and best dose of binimetinib when given in combination with docetaxel in treating patients with previously treated, stage IV non-small cell lung cancer. Binimetinib and docetaxel may stop the growth of tumor cells by blocking some of the enzymes needed for cell growth.