Cannot change default IP address with latest Ubuntu image

Downloaded the latest ubuntu image. Created the container and runs fine. My issue is that I can not change the default IP

root@69e681879d62:/# ifconfig eth0 172.16.12.140 netmask 255.255.255.0

SIOCSIFADDR: Operation not permitted

SIOCSIFFLAGS: Operation not permitted

SIOCSIFNETMASK: Operation not permitted

Even if I run ifconfig eth0 down I get

SIOCSIFFLAGS: Operation not permitted

Need to change to static so I can configure the container with a domain controller with samba.

Any help is greatly appreciated