How to access LXC container from network

I followed these instructions to create a LXC container, which hosts Ubuntu (bionic). I also changed its name:

# hostnamectl set-hostname ubuntu_bionic

It is visible on my network as LXC_NAME, not ubuntu_bionic:

I installed rbenv and ruby 2.5.0.

I created a Rack application and started it (using Thin):

root@ubuntu_bionic:/home/sinatra/foo# rackup
Thin web server (v1.7.2 codename Bachmanity)
Maximum connections set to 1024
Listening on localhost:9292, CTRL+C to stop

Unfortunately, I’m not able to access that port from my workstation:

$ curl
curl: (7) Failed to connect to port 9292: Connection refused

I’m certain that it doesn’t matter, but the container isn’t listed in Luci’s interface:


  • What do I need to do to make port 9292 visible?
  • Why isn’t the container listed in Luci? Which config file controls the containers?
  • What do I need to do to get the DHCP server to use ubuntu_bionic, rather than LXC_NAME?

I restarted the router and all of the issues were resolved.