I'm assuming you mean you created a CT (container) of Ubuntu and you're trying to access that.
In the container you have to establish a network connection: /usr/sbin/dhclient
this will be temporary however, all I've ever done, I've never established a permanent interface in a container. Just never needed to, thus far.