Hello,
I am trying to do something very simple, but I lack some knowledge on docker.
I have a docker image in a private GitHub repo that updates the image on dockerhub when pushed.
Docker file
FROM python:alpine3.17
WORKDIR /apps
COPY . .
CMD [ "python", "app.py" ]
Python file
import time
print("Hello unraid docker, just testing first setup")
time.sleep(30)
Simple, nothing crazy. Now since I got it working on unraid I wanted to figure out how to add storage to my appdata share like other containers from the community apps do. To start, first I tried to see if I could just make a path from the container to host to at least see if files would show up from the container. I've had to add/change container paths before on community apps to get to different files with no issues.
The folder in the share comes up and... It's empty... but the apps folder on the container is there with the files added.
So I tried other container paths, but nothing, or the container would crash with an exec error. I realize I am missing something. Am I adding the wrong path, or do need to specify a volume in my dockerfile? In other dockerfiles I never see a volume added so I am at a loss.
Additionally, how does one give access to the base appdata folder to a docker container so you can monitor files? I've tried using inotify but it didn't have the functionality I was looking for.