I am copying a container via the API but I do not want it to copy over proxies, but when i overwrite the list of devices the new copy still has this device.
The manual states Config override / Optional list of devices the instance should have
, so not sure if I am misunderstanding this.
This is what I send via POST to /instances
Array
(
[name] => foo
[architecture] => x86_64
[profiles] => Array
(
[0] => custom-default
[1] => custom-nat
)
[ephemeral] =>
[config] => Array
(
[image.architecture] => amd64
[image.description] => Alpine 3.12 amd64 (20201217_13:00)
[image.os] => Alpine
[image.release] => 3.12
[image.serial] => 20201217_13:00
[image.type] => squashfs
[limits.cpu] => 400
[limits.memory] => 1GB
[volatile.base_image] => bf419ffb3b7a600ea86d386558e52b0d56b7a064289d21a95032b2549528eafe
)
[stateful] =>
[source] => Array
(
[type] => copy
[certificate] =>
[base-image] => bf419ffb3b7a600ea86d386558e52b0d56b7a064289d21a95032b2549528eafe
[source] => alpine
[live] =>
[instance_only] => 1
)
[devices] => Array
(
[eth0] => Array
(
[name] => eth0
[nictype] => bridged
[parent] => custombr0
[type] => nic
)
[root] => Array
(
[path] => /
[pool] => default
[size] => 5GB
[type] => disk
)
)
[type] => container
)
This new container has 3 devices, including this proxy which I removed.
[my-proxy] => Array
(
[connect] => tcp:0.0.0.0:80
[listen] => tcp:192.168.1.100:3080
[nat] => true
[type] => proxy
)
Thanks in advance