England's Matthew Potts took their final wicket as Ireland were all out for 172 on day one of their test match.