d2iq-archive / marathon

Deploy and manage containers (including Docker) on top of Apache Mesos at scale.
https://mesosphere.github.io/marathon/
Apache License 2.0
4.07k stars 843 forks source link

Bug: cannot remove container configuration #7273

Open aistis- opened 1 year ago

aistis- commented 1 year ago

Once an app is created on Marathon with container configuration, it is not possible to remove container configuration without recreating the app.

Screenshot

timcharper commented 1 year ago

Unfortunately, there was never an implementation to unset a value for PUT/PATCH. You'll need to get the whole JSON document, edit it, and then re-POST it.

Have a look at my CLI project in mcli. https://github.com/timcharper/mcli. Requires bash 4.x. The Marathon cli script supports "edit", marathon-cli app edit .... Should help you do what you want.