Skip to content

Commit 1848635

Browse files
committed
major bump
1 parent 428f22a commit 1848635

File tree

7 files changed

+22
-26
lines changed

7 files changed

+22
-26
lines changed

lib/docker.js

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Docker.prototype.createContainer = function(opts, callback) {
5151
statusCodes: {
5252
200: true, // unofficial, but proxies may return it
5353
201: true,
54+
400: 'bad parameter',
5455
404: 'no such container',
5556
406: 'impossible to attach',
5657
500: 'server error'

package-lock.json

+15-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "dockerode",
33
"description": "Docker Remote API module.",
4-
"version": "3.3.5",
4+
"version": "4.0.0",
55
"author": "Pedro Dias <[email protected]>",
66
"maintainers": [
77
"apocas <[email protected]>"
@@ -16,7 +16,7 @@
1616
],
1717
"dependencies": {
1818
"@balena/dockerignore": "^1.0.2",
19-
"docker-modem": "^3.0.0",
19+
"docker-modem": "^5.0.0",
2020
"tar-fs": "~2.0.1"
2121
},
2222
"devDependencies": {

test/container.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@ describe("#container", function() {
7171
it("should put an archive inside the container", function(done) {
7272
var container = docker.getContainer(testContainer);
7373

74-
function handler(err, data) {
74+
function handler(err) {
7575
expect(err).to.be.null;
76-
expect(data).to.be.ok;
7776
done();
7877
}
7978

test/docker.js

-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,6 @@ describe("#docker", function() {
433433
expect(container).to.be.ok;
434434

435435
container.remove(function(err, data) {
436-
console.log(data)
437436
expect(err).to.be.null;
438437
done();
439438
});

test/plugin.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,8 @@ describe("#plugin", function() {
115115
this.timeout(15000);
116116
var plugin = docker.getPlugin('sshfs');
117117

118-
function handler(err, data) {
118+
function handler(err) {
119119
expect(err).to.be.null;
120-
expect(data).to.be.ok;
121120
done();
122121
}
123122

test/swarm.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,8 @@ describe("#swarm", function() {
9999
it("should update secret", function(done) {
100100
this.timeout(15000);
101101

102-
function handler(err, data) {
102+
function handler(err) {
103103
expect(err).to.be.null;
104-
expect(data).to.be.ok;
105104
done();
106105
}
107106
var opts = {
@@ -180,9 +179,8 @@ describe("#swarm", function() {
180179
it("should update config", function(done) {
181180
this.timeout(15000);
182181

183-
function handler(err, data) {
182+
function handler(err) {
184183
expect(err).to.be.null;
185-
expect(data).to.be.ok;
186184
done();
187185
}
188186
var opts = {

0 commit comments

Comments
 (0)