mikenye / docker-picard

Docker container for MusicBrainz Picard
87 stars 11 forks source link

How can I build the storage folder in another location, but not with the config folder in the same folder #51

Open angussleeping opened 2 years ago

angussleeping commented 2 years ago

I build the docker-picard in my nas ,I set the /config in the docker folder , and set the /storage in my music folder(not with docker folder) , in the website when I add folder I cannot find the music folder , then I change the /storage to the docker folder with /config in the same folder , I can now find the music folder How can I set the /storage in another folder?

Snipaste_2022-03-21_09-22-47

I can only find the music folder in the first folder , cannot find the second folder

mikenye commented 2 years ago

Hi @angussleeping,

You can't have maps to the same directory.

Could you try mapping:

docker/picard/music to /storage/music1 music/music to/storage/music2

See if that helps.

angussleeping commented 2 years ago

sorry,it also cannot show the other music folder, and I found another Docker container use the same container port with picard, how can I change the port to prevent port conflict happen, so I can open the two container at the same time

picard界面 Picard端口 mkvtoolnix端口
mikenye commented 2 years ago

In the first screenshot you’re looking at /config, not /storage?

To run two containers, what you’ve done with the ports is correct, that should work.

angussleeping commented 2 years ago

when I open the gui there is no /storage folder showed in find directory window。

mikenye commented 2 years ago

If you use the "Look in" drop-down at the top of the window, and browse to /, you should then be able to see /storage.

image

simistef commented 1 year ago

I am having the same issue on a synology nas. cannot see any folders outside docker/config folder. I tried to map the config folder in the music folder instead of docker folder, but I get this error at start of container:

mkdir: cannot create directory ‘/config’: Permission denied

so must be a permission problem from the container accessing other folders.

simistef commented 1 year ago

by the way, I even updated environment variables UID and GID with my own specific values, but still same thing. cannot jump outside config folder.

phw commented 1 year ago

@simistef Can you share a screenshot of what you see? You should map your local music folder to /storage and there it will be available then.

simistef commented 1 year ago

Sure, here you go:

Screenshot 2023-01-10 205207 Screenshot 2023-01-10 205322

marcschn commented 1 year ago

I'm facing the exactly same problem on my synology NAS: storage is visible in the GUI but empty. Setting UID and GID didn't help.

marcschn commented 6 months ago

any updates on this issue regarding synology? Or other people having the same issue?

one thing I did notice though is the path example given in my custom file naming script which seems unusual: picard-docker-synology

marcschn commented 6 months ago

I actually figured it out: I changed the UID ENV setting portainer but it did not get saved - which at the time i didn't realize. Portainer on Synology did not report any error. Trying the same thing through DSM (disk station manager web UI) reported multiple ENV variables being empty, hence my change not able to be saved. Deleting those empty variables allowed me to successfully change the UID which solved the problem.