Docker container taking over TTY

I have docker installed on Ubuntu 16.04 server. When I try to run a docker container of Vyos, it takes over the tty session and makes remote administration difficult.
I know it is related to running in privileged mode, but I need the image to run in privileged to access the NIC.

To run the image I use the command “docker run -d --privileged -v /lib/modules:/lib/modules kurochan/vyos:latest”

I also tried it with “-it”, but it always takes over the tty.

I also tried building my own image of Vyos using the script at

I tried everything I can think of. If someone could please help me, I would greatly appreciate it.