[GH-ISSUE #67] Setting a different dir than /etc/wolf behaves oddly #44

Closed
opened 2026-10-15 12:55:15 +00:00 by bsakaguchi · 2 comments
Owner

Originally created by @duskmoss on GitHub (May 2, 2024).
Original GitHub issue: https://github.com/games-on-whales/wolf/issues/67

In order to successfully use a different dir you need to change all three places.

- HOST_APPS_STATE_FOLDER=/etc/wolf
    volumes:
      - /etc/wolf/:/etc/wolf 

has to become

- HOST_APPS_STATE_FOLDER=/var/mnt/otherdrive/wolf
    volumes:
      - /var/mnt/otherdrive/wolf/:/var/mnt/otherdrive/wolf 

If you just change the local folder mounted to the volume it appears containers spawned by wolf still look in /etc/wolf. So you need to change HOST_APPS_STATE_FOLDER. But then the main container has that mounted to /etc/wolf so you need to change that too.

I feel like if the sub containers can't be automatically setup to copy the volume logic of the main container it should be a variable used 3 times in the docker command/compose file. Or at least document this behavior.

(thanks so much btw I was looking at sunshine thinking there has to be a way to make all this headless and here we are)

Originally created by @duskmoss on GitHub (May 2, 2024). Original GitHub issue: https://github.com/games-on-whales/wolf/issues/67 In order to successfully use a different dir you need to change all three places. ``` - HOST_APPS_STATE_FOLDER=/etc/wolf volumes: - /etc/wolf/:/etc/wolf ``` has to become ``` - HOST_APPS_STATE_FOLDER=/var/mnt/otherdrive/wolf volumes: - /var/mnt/otherdrive/wolf/:/var/mnt/otherdrive/wolf ``` If you just change the local folder mounted to the volume it appears containers spawned by wolf still look in /etc/wolf. So you need to change HOST_APPS_STATE_FOLDER. But then the main container has that mounted to /etc/wolf so you need to change that too. I feel like if the sub containers can't be automatically setup to copy the volume logic of the main container it should be a variable used 3 times in the docker command/compose file. Or at least document this behavior. (thanks so much btw I was looking at sunshine thinking there has to be a way to make all this headless and here we are)
bsakaguchi 2026-10-15 12:55:15 +00:00
Author
Owner

@ABeltramo commented on GitHub (May 2, 2024):

This should definitely be documented better in the docs; it's a bit tricky to get automatically since:

  • Wolf being in charge of running additional containers needs to know which folder on the host should be volume mounted (HOST_APPS_STATE_FOLDER)
  • Additionally it needs to add some files that will be shared between Wolf and the running app in order to implement proper hotplug. In order to do that it defaults to $HOST_APPS_STATE_FOLDER/...path.. but since Wolf runs inside a docker container itself it needs to have access to that path

I don't exclude that we could get clever and use volumes instead of paths on the host in future but I think it's fairly clean and easy as it is now.

<!-- gh-comment-id:2090879579 --> @ABeltramo commented on GitHub (May 2, 2024): This should definitely be documented better in the docs; it's a bit tricky to get automatically since: - Wolf being in charge of running additional containers needs to know which folder on the host should be volume mounted (`HOST_APPS_STATE_FOLDER`) - Additionally it needs to add some files that will be shared between Wolf and the running app in order to implement proper hotplug. In order to do that it defaults to `$HOST_APPS_STATE_FOLDER/...path..` but since Wolf runs inside a docker container itself it needs to have access to that path I don't exclude that we could get clever and use volumes instead of paths on the host in future but I think it's fairly clean and easy as it is now.
Author
Owner

@ABeltramo commented on GitHub (Jun 14, 2024):

This has been added to the docs: https://games-on-whales.github.io/wolf/stable/user/configuration.html#_change_the_host_apps_state_folder

Closing this.

<!-- gh-comment-id:2168666744 --> @ABeltramo commented on GitHub (Jun 14, 2024): This has been added to the docs: https://games-on-whales.github.io/wolf/stable/user/configuration.html#_change_the_host_apps_state_folder Closing this.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
games-on-whales/wolf#44
No description provided.