Dockerfile构建镜像

Method

POST

描述

Dockerfile构建镜像

请求参数

参数名称说明参数类型是否必填备注
ActionBuildImagestring
Version2018-03-08string
参数名称说明参数类型是否必填备注
DockerfileDockerfile内容base64后内容string
Tag镜像tagstring
RepositoryId镜像仓库Idlong

返回参数

参数名称说明参数类型是否必填备注
RequestIdstring

状态码

错误码(Code)错误提示(Message)http status code说明
InvalidBodyFormatThe format of the request body is illegal.400请求体格式非法
ParameterMissingThe required input parameter %s for processing this request is not supplied.400参数 %s 缺失
RepoNotFound%s is not found.404%s请求的资源不存在
ForbiddenYou have no right to access.403无权访问
InternalServerErrorInternal server error.500服务器内部错误

请求示例

POST https://open.cn-east-1.163yun.com/ccr?Version=2018-03-08&Action=BuildImage
{
    "Dockerfile": "I2F3cyBkb2NrZXJmaWxlCkZyb20gaHViLmMuMTYzLmNvbS9wdWJsaWMvZGViaWFuOjcuOS1jb21tb24KCk1BSU5UQUlORVIgcGVpbWluZ21pbmcgcGVpbWluZ21pbmdAY29ycC5uZXRlYXNlLmNvbQo=",
    "RepositoryId": 211,
    "Tag": "latest"
}

返回示例

{
    "RequestId": "2a4de47c-6cf9-4efc-925c-2136bb1466a1"
}