You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.
When I tried the API for creating a container, it says that the request body is a json string represents a container. And there is a link to the Container Spec page, the specification of container is a list of containers, like below:
"containers" : [{...}, ... {...}]
But actually, the request body should be just one container, drop the outer brackets, like
{
"id": "app",
"image": "repo/image:tag",
"command": ["/bin/sh"],
"workdir": "/root",
"envs": [{
"env": "JAVA_OPT",
"value": "-XMx=256m"
}],
"volumes": [{
"path": "/var/log",
"volume": "name",
"readOnly": false,
"detail": {
"name": "prod_log",
"source": "/var/log/myweb.img",
"format": "raw"
}
}],
"files": [{
"path": "/var/lib/xxx/xxxx",
"filename": "name",
"perm": "0755",
"detail": {
"name": "nginx.conf",
"encoding": "raw",
"uri": "https://s3.amazonaws/bucket/file.conf",
"content": ""
}
}],
"tty": true
}
The text was updated successfully, but these errors were encountered:
When I tried the API for creating a container, it says that the request body is a json string represents a container. And there is a link to the Container Spec page, the specification of container is a list of containers, like below:
"containers" : [{...}, ... {...}]
But actually, the request body should be just one container, drop the outer brackets, like
{
"id": "app",
"image": "repo/image:tag",
"command": ["/bin/sh"],
"workdir": "/root",
"envs": [{
"env": "JAVA_OPT",
"value": "-XMx=256m"
}],
"volumes": [{
"path": "/var/log",
"volume": "name",
"readOnly": false,
"detail": {
"name": "prod_log",
"source": "/var/log/myweb.img",
"format": "raw"
}
}],
"files": [{
"path": "/var/lib/xxx/xxxx",
"filename": "name",
"perm": "0755",
"detail": {
"name": "nginx.conf",
"encoding": "raw",
"uri": "https://s3.amazonaws/bucket/file.conf",
"content": ""
}
}],
"tty": true
}
The text was updated successfully, but these errors were encountered: