Redmine, Docker and container view

0

Well, I'm totally new to docker and I'll try to be as brief as possible. I have a container with Redmine, to do the process I'm wanting I need to put in Redmine the path to a directory, my question is if Redmine being inside a container can have view of my folders in Ubuntu on VM , or even Windows.

I already did this process and it was quiet in a VM with Redmine without the use of Docker.

Thank you in advance if anyone can answer me.

    
asked by anonymous 03.12.2018 / 04:22

1 answer

0

If you want your container to see some directory on your machine, you need to mount a volume, where you will map a local directory inside the container.

Ex. (removed from the official Redmine image in the docker hub ):

$ docker run -d --name some-redmine -v /my/own/datadir:/usr/src/redmine/files --link some-postgres:postgres redmine

Where,

-v /my/own/datadir:/usr/src/redmine/files

will map the my/own/datadir of your machine to /usr/src/redmine/files within the container.

    
03.12.2018 / 12:11