It makes assumptions about the pty path, hence better call it in the container namespace rather than the host.