A shocked pub landlord who bought a black cab to give customers a free lift home has been ordered to stop by the council.