According to Socrates, virtue is knowledge, because (1) All living things aim for their perceived good; and therefore (2) If anyone does not know what is good, he cannot do what is good because he will always aim for a mistaken target; but (3) If someone knows what is good, he will do what is good, because he will aim for what is good.
I do agree with Socrates, but that's in my opinion.