mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix commit api document
The commit message field should be `comment`, not `m` https://github.com/docker/docker/blob/master/api/server/server.go#L478 Signed-off-by: Huayi Zhang <irachex@gmail.com>
This commit is contained in:
parent
2eb9c0bfd4
commit
f6140060e3
4 changed files with 9 additions and 9 deletions
|
@ -1208,7 +1208,7 @@ Create a new image from a container's changes
|
|||
|
||||
**Example request**:
|
||||
|
||||
POST /commit?container=44c004db4b17&m=message&repo=myrepo HTTP/1.1
|
||||
POST /commit?container=44c004db4b17&comment=message&repo=myrepo HTTP/1.1
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
|
@ -1256,7 +1256,7 @@ Query Parameters:
|
|||
- **container** – source container
|
||||
- **repo** – repository
|
||||
- **tag** – tag
|
||||
- **m** – commit message
|
||||
- **comment** – commit message
|
||||
- **author** – author (e.g., "John Hannibal Smith
|
||||
<[hannibal@a-team.com](mailto:hannibal%40a-team.com)>")
|
||||
|
||||
|
|
|
@ -1197,7 +1197,7 @@ Create a new image from a container's changes
|
|||
|
||||
**Example request**:
|
||||
|
||||
POST /commit?container=44c004db4b17&m=message&repo=myrepo HTTP/1.1
|
||||
POST /commit?container=44c004db4b17&comment=message&repo=myrepo HTTP/1.1
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
|
@ -1245,7 +1245,7 @@ Query Parameters:
|
|||
- **container** – source container
|
||||
- **repo** – repository
|
||||
- **tag** – tag
|
||||
- **m** – commit message
|
||||
- **comment** – commit message
|
||||
- **author** – author (e.g., "John Hannibal Smith
|
||||
<[hannibal@a-team.com](mailto:hannibal%40a-team.com)>")
|
||||
|
||||
|
|
|
@ -1202,7 +1202,7 @@ Create a new image from a container's changes
|
|||
|
||||
**Example request**:
|
||||
|
||||
POST /commit?container=44c004db4b17&m=message&repo=myrepo HTTP/1.1
|
||||
POST /commit?container=44c004db4b17&comment=message&repo=myrepo HTTP/1.1
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
|
@ -1250,7 +1250,7 @@ Query Parameters:
|
|||
- **container** – source container
|
||||
- **repo** – repository
|
||||
- **tag** – tag
|
||||
- **m** – commit message
|
||||
- **comment** – commit message
|
||||
- **author** – author (e.g., "John Hannibal Smith
|
||||
<[hannibal@a-team.com](mailto:hannibal%40a-team.com)>")
|
||||
|
||||
|
|
|
@ -399,7 +399,7 @@ Status Codes:
|
|||
|
||||
`GET /containers/(id)/resize?h=<height>&w=<width>`
|
||||
|
||||
Resize the TTY of container `id`
|
||||
Resize the TTY of container `id`
|
||||
|
||||
**Example request**:
|
||||
|
||||
|
@ -1237,7 +1237,7 @@ Create a new image from a container's changes
|
|||
|
||||
**Example request**:
|
||||
|
||||
POST /commit?container=44c004db4b17&m=message&repo=myrepo HTTP/1.1
|
||||
POST /commit?container=44c004db4b17&comment=message&repo=myrepo HTTP/1.1
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
|
@ -1285,7 +1285,7 @@ Query Parameters:
|
|||
- **container** – source container
|
||||
- **repo** – repository
|
||||
- **tag** – tag
|
||||
- **m** – commit message
|
||||
- **comment** – commit message
|
||||
- **author** – author (e.g., "John Hannibal Smith
|
||||
<[hannibal@a-team.com](mailto:hannibal%40a-team.com)>")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue