Tag an image Run in API Explorer

POST /images/{name}/tag

Tag an image so that it becomes part of a repository.

Path parameters

  • name string Required

    Image name or ID to tag.

Query parameters

  • repo string

    The repository to tag in. For example, someuser/someimage.

  • tag string

    The name of the new tag.

Responses

  • 201

    No error

  • 400 application/json

    Bad parameter

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

  • 404 application/json

    No such image

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

  • 409 application/json

    Conflict

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

  • 500 application/json

    Server error

    Hide response attribute Show response attribute object
    • message string Required

      The error message.

POST /images/{name}/tag
curl \
 --request POST 'http://api.example.com/v1.49/images/{name}/tag'
Response examples (400)
{
  "message": "Something went wrong."
}
Response examples (400)
{
  "message": "Something went wrong."
}
Response examples (404)
{
  "message": "Something went wrong."
}
Response examples (404)
{
  "message": "Something went wrong."
}
Response examples (409)
{
  "message": "Something went wrong."
}
Response examples (409)
{
  "message": "Something went wrong."
}
Response examples (500)
{
  "message": "Something went wrong."
}
Response examples (500)
{
  "message": "Something went wrong."
}