Gathering detailed insights and metrics for docker-modem
Gathering detailed insights and metrics for docker-modem
Gathering detailed insights and metrics for docker-modem
Gathering detailed insights and metrics for docker-modem
Docker Remote API network stack driver.
npm install docker-modem
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
234 Stars
328 Commits
112 Forks
10 Watching
3 Branches
58 Contributors
Updated on 25 Nov 2024
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
2%
179,123
Compared to previous day
Last week
3.6%
951,947
Compared to previous week
Last month
12.6%
3,920,594
Compared to previous month
Last year
45.4%
36,140,968
Compared to previous year
Docker's Remote API network layer module.
docker-modem
will help you interacting with Docker
, since it already implements all the network strategies needed to support all Docker
's Remote API endpoints.
It is the module powering (network wise) dockerode and other modules.
1var Modem = require('docker-modem');
2var modem1 = new Modem({socketPath: '/var/run/docker.sock'});
3var modem2 = new Modem(); //defaults to above if env variables are not used
4var modem3 = new Modem({host: 'http://192.168.1.10', port: 3000});
5var modem4 = new Modem({protocol:'http', host: '127.0.0.1', port: 3000});
6var modem5 = new Modem({host: '127.0.0.1', port: 3000}); //defaults to http
You can connect to the Docker daemon via SSH in two ways:
1//built-in SSH agent
2var modem1 = new Modem({
3 protocol: 'ssh',
4 host: 'ssh://127.0.0.1',
5 port: 22
6});
7
8//custom agent
9var customAgent = myOwnSSHAgent({host: 'ssh://127.0.0.1', port: 22});
10var modem2 = new Modem({
11 agent: customAgent,
12});
mocha
and chai
. Run them with npm test
.docker-modem
.Amazing entities that sponsor my open-source work. Check them out!
Pedro Dias - @pedromdias
Licensed under the Apache license, version 2.0 (the "license"); You may not use this file except in compliance with the license. You may obtain a copy of the license at:
http://www.apache.org/licenses/LICENSE-2.0.html
Unless required by applicable law or agreed to in writing, software distributed under the license is distributed on an "as is" basis, without warranties or conditions of any kind, either express or implied. See the license for the specific language governing permissions and limitations under the license.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 6/21 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More