From d2620bb93af0f92dc0bcd10307e55fb81fa4aa86 Mon Sep 17 00:00:00 2001 From: Jason Freidman Date: Thu, 19 May 2022 12:38:09 -0700 Subject: [PATCH] Allow 201 Created response for createCheckpoint Docker CE 20.10.16 returns a 201 when creating container checkpoints. --- lib/container.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/container.js b/lib/container.js index e25dd58..23077a6 100644 --- a/lib/container.js +++ b/lib/container.js @@ -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'