Conic version of Loewner–John ellipsoid theorem