Project

General

Profile

Actions

Bug #5025

open

[Docker] Make it easy to add data from the host system to containers

Added by Brett Smith about 9 years ago. Updated about 2 months ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
Docker
Target version:
Story points:
-
Release:
Release relationship:
Auto

Description

It often happens that someone wants to test the Docker functionality of Crunch by spinning up the Arvados containers, uploading an image from the host system to those containers, and then submitting a job.

Right now, if you try to do this, arv keep docker will fail to connect to the Keep servers, because they have internal DNS names and the host system doesn't consult the internal DNS server. You can work around that by adding 172.17.42.1 as a nameserver to the host system, but you have to dig through the source to figure that out.

This should be easier. At the very least, we should document the nameserver trick. We could also consider adjusting the Keep entries in the Docker containers to use IP addresses (although this might have downsides I'm not aware of yet), or figure out a reliable way to reconfigure the host resolv.conf to accommodate this.


Related issues

Related to Arvados - Bug #5147: [Docker] Make API server root URL in discovery document easier to resolveNewActions
Actions #1

Updated by Tom Clegg about 9 years ago

  • Target version changed from Bug Triage to Arvados Future Sprints
Actions #2

Updated by Brett Smith about 9 years ago

(10:29:26 AM) <tetron> https://stackoverflow.com/questions/7934027/process-local-override-of-name-resolution
(10:30:25 AM) <tetron> https://unix.stackexchange.com/questions/10438/can-i-create-a-user-specific-hosts-file-to-complement-etc-hosts
(10:32:35 AM) <brett> This seems like a promising possible implementation for #5025.
(10:33:04 AM) <tetron> also LOCALDOMAIN
(10:33:14 AM) <tetron> man 7 hostname
(10:33:18 AM) <tetron> man 5 resolv.conf
(10:33:29 AM) <tetron> brett: exactly
(10:33:31 AM) <brett> I'd be more comfortable if the configuration used full names consistently, though. Overriding super-generic hostnames like "api" and "shell" seems like asking for trouble.
(10:33:41 AM) <tetron> I agree

Actions #3

Updated by Ward Vandewege almost 3 years ago

  • Target version deleted (Arvados Future Sprints)
Actions #4

Updated by Peter Amstutz about 1 year ago

  • Release set to 60
Actions #5

Updated by Peter Amstutz about 2 months ago

  • Target version set to Future
Actions

Also available in: Atom PDF