Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Mount Docker Shared Folder

Highlighted

Mount Docker Shared Folder

New Contributor

I'd like to mount a file from the host system on the hdp client in docker. It should be doable on startup, but I can't seem to find the equivalent of the Docker or docker-configuration file.

I'd like to mount a created file with an ext4 filesystem in it (though I could make any filesystem type) - I'll have a number of students mounting from a large filesystem, and I'm hoping to force a maximum size on them by giving them a fixed-size filesystem to mount this way. So it would be the equivalent of "mount -t ext4 share /data/host01.ext4", which could then be added to the hdfs via the amber control web pages. That's what I'd like to do, anyhow... :-)

2 REPLIES 2

Re: Mount Docker Shared Folder

New Contributor

ambari control pages. Spellcheckers should die!

Re: Mount Docker Shared Folder

Super Collaborator

In docker you can mount a volume with

docker run -v /hostdir:containerdir dockerimage

the host dir can also be a file.

Don't have an account?
Coming from Hortonworks? Activate your account here