Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DockerBuilder: allow for remote Docker daemons #18

Open
nokome opened this issue Oct 17, 2018 · 2 comments
Open

DockerBuilder: allow for remote Docker daemons #18

nokome opened this issue Oct 17, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@nokome
Copy link
Member

nokome commented Oct 17, 2018

Currently, Dockter requires Docker to be installed on the system. That's because we're using:

const docker = new Docker() # Connects to local Docker daemon via '/var/run/docker.sock'

But, in theory, we could allow for a remote Docker daemon to build images (it would require that the folder contents be zipped up and send across the network). e.g.

const docker = new Docker({
  protocol: 'https',
  host: 'some.docker-server.org',
  port: process.env.DOCKER_PORT || 2375,
  ca: fs.readFileSync('ca.pem'),
  cert: fs.readFileSync('cert.pem'),
  key: fs.readFileSync('key.pem')
})

Not a high priority, but could be useful for users who don't have Docker installed and don't want to.

@nokome nokome added the enhancement New feature or request label Oct 17, 2018
@nokome nokome added this to the 1.1.0 milestone Oct 17, 2018
@giorgiosironi
Copy link

Remote docker is also a good option if you end up running the code inside another container, like in a Travis CI or Circle CI build. It has some limitations on running the image rather than on building it though, as it's difficult to mount local paths as volumes for the running containers to e.g. pass in data files or retrieve some generated ones.

@nokome
Copy link
Member Author

nokome commented Nov 1, 2018

@giorgiosironi : I was thinking it could be a useful option for researchers who don't want to install Docker on their machines. But yes, as you say there are issues when it comes to running containers remotely.

@nokome nokome removed this from the 1.1 milestone Jun 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants