improve determine whether docker exists