In situations where you have setup your Container (LXC) or Virtual Machine (VM) to acquire its’ IP address from a Router, that is using DHCP. You may not be sure what IP address has been assigned to your machine.
You can use the following Command through the CLI in Terminal (when directly connected to your machine or via SSH) to have your IP address printed to the screen.
hostname -I | awk '{print $1}'