
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
dockerode-process
Advanced tools
ChildProcess like interface for docker containers.
Root module exported from require('docker-process')
.
var DockerProcess = require('docker');
var dockerProc = new DockerProcess(
// dockerode-promise instance
docker,
{
// http://docs.docker.io/en/latest/api/docker_remote_api_v1.8/#create-a-container
create: {},
// http://docs.docker.io/en/latest/api/docker_remote_api_v1.8/#start-a-container
start: {}
}
);
exit
Emitted when docker container stops
close
Identical to exit
dockerProc.stdout
Readable stream for stdout.
dockerProc.stderr
Readable stream for stderr.
dockerProc.id
Container id populated during run.
dockerProc.exitCode
Exit code populated after run.
dockerProc.run()
Create then start the container and return a promise for its exit status.
dockerProc.run().then(
function(code) {
}
)
dockerProc.remove()
Remove the docker container.
var DockerProcess = require('docker-process');
var dockerProc = new DockerProcess(
// dockerode-promise instance
docker,
{
// http://docs.docker.io/en/latest/api/docker_remote_api_v1.8/#create-a-container
create: {
Image: 'ubuntu',
Cmd: ['/bin/bash', '-c', 'echo "xfoo"']
},
// http://docs.docker.io/en/latest/api/docker_remote_api_v1.8/#start-a-container
start: {}
}
);
dockerProc.run();
dockerProc.stdout.pipe(process.stdout);
dockerProc.once('exit', function(code) {
process.exit(code);
})
FAQs
ChildProcess like interface for docker containers
The npm package dockerode-process receives a total of 3 weekly downloads. As such, dockerode-process popularity was classified as not popular.
We found that dockerode-process demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.