Redmine, Docker and container view

Asked

Viewed 72 times

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 doubt is whether Redmine by being inside a container can have view of my folders in Ubuntu on VM, or even Windows.

I’ve done this process and it was smooth on a VM with Redmine without the use of Docker.

Thank you in advance if anyone can answer me.

  • As far as I’m concerned, it’s possible for you to teach Docker, when you upload that specific image, to point to a directory on your machine. Unfortunately, as my knowledge of the subject is extremely limited, I cannot inform you of the command line option that does this.

1 answer

0

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

Ex. (taken from official image of Redmine on 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 on /usr/src/redmine/files inside the container.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.