Skip to content

Commit

Permalink
Allow 201 Created response for createCheckpoint
Browse files Browse the repository at this point in the history
Docker CE 20.10.16 returns a 201 when creating container checkpoints.
  • Loading branch information
compnski authored May 19, 2022
1 parent 89d0b6a commit d2620bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ Container.prototype.createCheckpoint = function(opts, callback) {
allowEmpty: true,
statusCodes: {
200: true, //unofficial, but proxies may return it
201: true,
204: true,
404: 'no such container',
500: 'server error'
Expand Down

0 comments on commit d2620bb

Please sign in to comment.