I have configured one container with following details on the network
ubuntu@machine3:~$ lxc profile show default2
config: {}
description: Default LXD profile
devices:
eth0:
name: eth0
nictype: macvlan
parent: enp0s8
type: nic
root:
path: /
pool: default
type: disk
name: default2
used_by:
- /1.0/containers/container1-default2
ubuntu@machine3:~$
On starting the container I got one public IP.
lxc list output
| container1-default2 | RUNNING | 192.168.56.122 (eth0)
How can I ensure that this IP will remain stick with this container even if this container is down for some days … basically I need to ensure that IP remains with this container … is there any file where this can be ensured or ways to confirm above doubt?