marathon
marathon copied to clipboard
Cannot submit job with id containing internal slashes
Tried to submit:
{
"id":"/tools/docker/registry",
"container":{ "type":"DOCKER", "docker":{ "image":"registry" }},
"env":{
"SETTINGS_FLAVOR":"local",
"STORAGE_PATH":"/docker_storage"
},
"cpus":0.5,
"mem":1024,
"instances":1
}
And got:
$ dcos marathon app add registry.json
Error: '/tools/docker/registry' does not match '^/?(([a-z0-9]|[a-z0-9][a-z0-9\\-]*[a-z0-9])\\.)*([a-z0-9]|[a-z0-9][a-z0-9\\-]*[a-z0-9])$'
Path: id
Value: "/tools/docker/registry"
Thanks Marcus! We saw this with the dcos cli only - directly submitting with httpie works fine