RT,
I searched for entire repository and still get no idea.
you must read and understand the docker remote api, referrenced at the top of the repo. example
var staticServer = await docker.createContainer({
Hostname: 'static',
Image: 'node',
Cmd: ['node', '/adapter/node_modules/.bin/httpster', '-d', '/static'],
HostConfig: {
AutoRemove: true,
Binds: [
`${projectRoot}:/adapter`,
`${tempStaticDir}:/static`
]
},
ExposedPorts: {
'3333/tcp': {}
},
NetworkingConfig: {
EndpointsConfig: {
[networkName]: {
Aliases: [
'static'
]
}
}
}
})
I do the same kind of thing here:
https://github.com/the-concierge/concierge/blob/master/src/api/images/run.ts#L58
Most helpful comment
you must read and understand the docker remote api, referrenced at the top of the repo. example