I am trying to use the Docker Remote API through the nodejs docker.io library, but I just cannot find the correct syntax on how to bind directories.
I am currently using this code:
docker.containers.start(cId, { Binds: ['/tmp:/tmp'] }, function(err, container)...
It starts the container, but when I check it, it does not show anything in the volumes.
The Docker Remote API documentation is missing when it comes to syntax, so I hope someone here knows the correct syntax.
jimmy source share