You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, many thanks for writing such an awesome wrapper. 馃憤
Here is one case that i come across :
I am trying to get list of all containers bases on user preference whether they want to see all containers or only few that comes by default.
Docker api docs says to specify "all" params in my call. Which works perfectly when i make raw curl call
xx.x.x.x/containers/json?all=1/true // Fetches all
xx.x.x.x/containers/json?all=0/false // Fetches NOT all
xx.x.x.x/containers/json?all=garbage // Fetches all
Now, when i try to make same call with listContainers method it will consider everything given to all as true i.e considering everything garbage even true/false/0/1 values.
docker.listContainers( {all: null/true/false/1/0}, function(err, containers) {...} // Fetches All
size option also work like this. ( i haven't tested other options).
Please help me out with this. I am using "dockerode": "~2.0.0"
The text was updated successfully, but these errors were encountered:
First of all, many thanks for writing such an awesome wrapper. 馃憤
Here is one case that i come across :
I am trying to get list of all containers bases on user preference whether they want to see all containers or only few that comes by default.
Docker api docs says to specify "all" params in my call. Which works perfectly when i make raw curl call
Now, when i try to make same call with
listContainers
method it will consider everything given toall
as true i.e considering everything garbage even true/false/0/1 values.size
option also work like this. ( i haven't tested other options).Please help me out with this. I am using "dockerode": "~2.0.0"
The text was updated successfully, but these errors were encountered: