I’m trying to launch a container with a specific IP, or alter it after creation. Is there a way to do this?
- The network settings for default lxdbr0 are
- If I create a container with
lxc launch ubuntu:16.04 my-containerit may get the IP 10.15.78.119.
- Now I want to change it to 10.15.78.100
I tried these commands, but they didn’t seem to do the trick:
lxc config device add my-container eth0 nic name=eht0 nictype=bridged parent=lxdbr0 lxc config device set my-container eth0 ipv4.address 10.15.78.100
I’ve looked at link and there they discuss changing the network settings themselves and not the containers IP settings.