May 4, 20215 yr I'm trying to get a specific container to remove a file before the container is started. but i can't quite seem to get it to work running "rm /mnt/user/storage/file.txt" from outside the container in the unraid temrinal works fine, and running "rm /storage/file.txt" (where /mnt/user/storage:/storage) from inside the container console both work fine. but i cant seem to get the logic in the docker container settings. i've tried both commands in the post arguments box but neither seems to run so i'm not sure what i'm supposed to do here. Thanks! Edited May 5, 20215 yr by MammothJerk
May 4, 20215 yr Author read other issues in this subforum and found my solution && docker exec containername sh -c 'rm /storage/file.txt' So apparently this script only runs when the container is rebuilt, and not on start/restart So i'm still looking for a solution Edited May 5, 20215 yr by MammothJerk
May 24, 20215 yr Author i emailed the unraid support as well but they said they dont support docker lol.
Archived
This topic is now archived and is closed to further replies.