Docker Modem

Docker Remote API network stack driver.
Alternatives To Docker Modem
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Linux Network Performance Parameters3,389
14 days ago4bsd-3-clause
Learn where some of the network sysctl variables fit into the Linux/Kernel network flow
Libnetwork2,0323203503 days ago53March 15, 2022284apache-2.0Go
networking for containers
Nut1,086
5 days ago1February 27, 2018583otherC
The Network UPS Tools repository. UPS management protocol Informational RFC 9271 published by IETF at https://www.rfc-editor.org/info/rfc9271
Node Escpos1,02915225 months ago35August 18, 202091otherTypeScript
🖨️ ESC/POS Printer driver for Node.js
Ixy909
2 years ago11bsd-3-clauseC
A simple yet fast user space network driver for Intel 10 Gbit/s NICs written from scratch
Rootlesskit7533021 hours ago64May 02, 202231apache-2.0Go
Linux-native "fake root" for implementing rootless containers
Pfq504
4 years agogpl-2.0C
Functional Network Framework for Multi-Core Architectures
Scrapli481172 days ago33March 06, 2022mitPython
Fast, flexible, sync/async, Python 3.7+ screen scraping client specifically for network devices
Docker Machine Kvm347
4 years ago11April 17, 201739apache-2.0Go
KVM driver for docker-machine
Networkmanager287
19 hours agogpl-2.0C
Read-only Mirror of the freedesktop.org repository. Please make pull requests against freedesktop.org.
Alternatives To Docker Modem
Select To Compare


Alternative Project Comparisons
Readme

docker-modem

Docker's Remote API network layer module.

docker-modem will help you talking 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.

Usage

Getting started

var Modem = require('docker-modem');
var modem1 = new Modem({socketPath: '/var/run/docker.sock'});
var modem2 = new Modem(); //defaults to above if env variables are not used
var modem3 = new Modem({host: 'http://192.168.1.10', port: 3000});
var modem4 = new Modem({protocol:'http', host: '127.0.0.1', port: 3000});
var modem5 = new Modem({host: '127.0.0.1', port: 3000}); //defaults to http

SSH

You can connect to the Docker daemon via SSH in two ways:

  • Using the built-in SSH agent.
  • Implement your own custom agent.
//built-in SSH agent
var modem1 = new Modem({
  protocol: 'ssh',
  host: 'ssh://127.0.0.1',
  port: 22
});

//custom agent
var customAgent = myOwnSSHAgent({host: 'ssh://127.0.0.1', port: 22});
var modem2 = new Modem({
  agent: customAgent,
});

Tests

  • Tests are implemented using mocha and chai. Run them with npm test.
  • Check dockerode tests, which is indirectly co-testing docker-modem.

License

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.

Popular Driver Projects
Popular Network Projects
Popular Libraries Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Javascript
Node
Docker
Network
Driver
Ssh
Modem
Moby