Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Bug: cannot remove container configuration #7273

Open
aistis- opened this issue Jan 30, 2023 · 1 comment
Open

Bug: cannot remove container configuration #7273

aistis- opened this issue Jan 30, 2023 · 1 comment

Comments

@aistis-
Copy link

aistis- commented Jan 30, 2023

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

  • GUI JSON mode: removing container key or setting container: null does not remove container configuration
  • GUI leaving all container fields empty results error /container: must not be empty
  • API: PATCH and PUT without container key or sending container: null does not remove container configuration
  • API: PATCH and PUT sending with empty container values gives error that docker config is missing

Screenshot

@timcharper
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants