Confined vortex flows with boundary-layer interaction