Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow styles.csv to be symlinked or mounted in docker #9334

Conversation

gmasil
Copy link
Contributor

@gmasil gmasil commented Apr 3, 2023

In stable-diffusion-webui-docker we want to mount the styles.csv to the host system to persist saved styles upon container restart. This is currently difficult as the file is moved around to prevent data loss on write operations.

The file is moved and thus symlinks won't keep up anymore, a direct docker bind mount doesn't work as well, as now the write process failes with device or resource busy, as a mounted file cannot be moved.

Further readings on the PR over in stable-diffusion-webui-docker: AbdBarho/stable-diffusion-webui-docker#386

My PR is a simple proposal to work around those problems. Surely not bulletproof, but I wanted to have a quick sample showing what would be a solution on our end, any feedback very welcome, I hope we can work on a solution together :)

@bluelovers
Copy link
Contributor

need this

@AUTOMATIC1111 AUTOMATIC1111 changed the base branch from master to dev April 29, 2023 13:14
@AUTOMATIC1111 AUTOMATIC1111 merged commit e10ee96 into AUTOMATIC1111:dev Apr 29, 2023
AbdBarho added a commit to AbdBarho/stable-diffusion-webui-docker that referenced this pull request May 4, 2023
Jordan-Lambda pushed a commit to Jordan-Lambda/lambda-cloud-stable-diffusion-2.0-webui-easy that referenced this pull request Aug 2, 2023
cloudaxes pushed a commit to cloudaxes/stable-diffusion-webui-docker that referenced this pull request Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants