[docker] Make host filesystem available inside container

Support for Ubuntu and other Desktop Linux distributions
Post Reply
secs
Donor
Posts: 13
Joined: 21 Feb 2015, 10:29

[docker] Make host filesystem available inside container

Post by secs »

Hi all.

I have a running system on one of my old house and have recently moved house. In doing so am playing with a new system and used the docker system to set up filebot

My question is probably more docker related but

My media files are hosted on the main file system. How do I get the Node etc to see my input/output directory that reside on my host system.

Peter
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help with Docker

Post by rednoah »

That's what the -v option of the docker command does.

e.g. make the current working directory available as /volume1 inside the docker container:

Code: Select all

-v $PWD:/volume1
:idea: Note that you need to use absolute paths. Relative paths have special meaning, i.e. virtual volumes that are not mapped to your host filesystem, e.g.

Code: Select all

-v data:/data
@see https://hub.docker.com/r/rednoah/filebot/
:idea: Please read the FAQ and How to Request Help.
Post Reply