@@ -12,16 +12,16 @@ import (
1212)
1313
1414// ContainerCommit applies changes into a container and creates a new tagged image.
15- func (cli * Client ) ContainerCommit (ctx context.Context , container string , options types.ContainerCommitOptions ) (types.ContainerCommitResponse , error ) {
15+ func (cli * Client ) ContainerCommit (ctx context.Context , container string , options types.ContainerCommitOptions ) (types.IDResponse , error ) {
1616 var repository , tag string
1717 if options .Reference != "" {
1818 distributionRef , err := distreference .ParseNamed (options .Reference )
1919 if err != nil {
20- return types.ContainerCommitResponse {}, err
20+ return types.IDResponse {}, err
2121 }
2222
2323 if _ , isCanonical := distributionRef .(distreference.Canonical ); isCanonical {
24- return types.ContainerCommitResponse {}, errors .New ("refusing to create a tag with a digest reference" )
24+ return types.IDResponse {}, errors .New ("refusing to create a tag with a digest reference" )
2525 }
2626
2727 tag = reference .GetTagFromNamedRef (distributionRef )
@@ -41,7 +41,7 @@ func (cli *Client) ContainerCommit(ctx context.Context, container string, option
4141 query .Set ("pause" , "0" )
4242 }
4343
44- var response types.ContainerCommitResponse
44+ var response types.IDResponse
4545 resp , err := cli .post (ctx , "/commit" , query , options .Config , nil )
4646 if err != nil {
4747 return response , err
0 commit comments