Docker Community Forums

Share and learn in the Docker community.

Docker Volumes I think

Hello Everyone,

I am creating a container and I will need to manipulate the config files located in the container. So I tried to map a volume to it but that only gave it an empty directory and the container failed to run the app properly inside the container.

What I need to be able to do is map a dir from the host /etc/dir to hold the container config files to edit/manipulate. Is there a way to do this? I seem to remember doing this once but I can’t remember how I did it.

Thanks everyone,
Michael

Hey Guys just a follow up I figured this out on my own. Thanks for letting me ask my question.

fyi for those who need help or to learn. The following did the trick:
-v /home/pi/nagios/etc/:/opt/nagios/etc/

1 Like