Docker Community Forums

Share and learn in the Docker community. returns 400

(webdevotion) #1

When you select ‘always’ for both auto destroy and auto restart the API endpoint fails with a 400. The problem is the UI which allows the mutually exclusive setting without visual feedback after trying to ‘create and deploy’.

    "service": {
        "__all__": ["Invalid autorestart/autodestroy choices: cannot set autodestroy to ALWAYS if autorestart is ALWAYS"]