Title: Issues setting up BookStack using linuxserver/bookstack image on Windows 11/Docker/WSL2 · Issue #279 · linuxserver/docker-bookstack · GitHub
Open Graph Title: Issues setting up BookStack using linuxserver/bookstack image on Windows 11/Docker/WSL2 · Issue #279 · linuxserver/docker-bookstack
X Title: Issues setting up BookStack using linuxserver/bookstack image on Windows 11/Docker/WSL2 · Issue #279 · linuxserver/docker-bookstack
Description: Is there an existing issue for this? I have searched the existing issues Current Behavior Issues setting up BookStack using linuxserver/bookstack image on Windows 11/Docker/WSL2 Hello team, I was attempting to set up BookStack using your...
Open Graph Description: Is there an existing issue for this? I have searched the existing issues Current Behavior Issues setting up BookStack using linuxserver/bookstack image on Windows 11/Docker/WSL2 Hello team, I was a...
X Description: Is there an existing issue for this? I have searched the existing issues Current Behavior Issues setting up BookStack using linuxserver/bookstack image on Windows 11/Docker/WSL2 Hello team, I was a...
Opengraph URL: https://github.com/linuxserver/docker-bookstack/issues/279
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Issues setting up BookStack using linuxserver/bookstack image on Windows 11/Docker/WSL2","articleBody":"### Is there an existing issue for this?\n\n- [x] I have searched the existing issues\n\n### Current Behavior\n\nIssues setting up BookStack using linuxserver/bookstack image on Windows 11/Docker/WSL2\nHello team,\nI was attempting to set up BookStack using your Docker image (linuxserver/bookstack:latest) on a Windows 11 machine running Docker Desktop with WSL2 integration.\nI encountered a few issues with existing documentation/guides that caused initial setup failures. I believe addressing these points could help future users on similar environments.\nThe problems and solutions were:\n1. Missing APP_KEY caused application halt\nThe main container failed to initialize because the APP_KEY environment variable was missing. The container entrypoint does not seem to auto-generate this if it's absent.\n Error message: The application key is missing, halting init!\n Solution: The key must be manually generated and added to the docker-compose.yml file before deployment.\n2. Inconsistent database environment variable names\nThe documentation/examples often use DB_USER and DB_PASS, but the linuxserver/bookstack image specifically expects different variable names, leading to authentication errors.\n Error message: Access denied for user 'database_username'@... (using password: YES)\n Solution: The variables must be named DB_USERNAME and DB_PASSWORD.\n3. Windows Volume Permissions (500 Internal Server Error)\nAfter fixing the database connection, I encountered a generic \"An unknown error occurred\" error (HTTP 500) because the container could not write to the persistent volumes created by Docker on the Windows file system.\n\n Error message: \"An unknown error occurred\" on the web page; logs showed a truncated Laravel exception.\n Solution: The volumes needed to be cleared completely using docker-compose down -v and then recreated by running docker-compose up -d to ensure correct permissions for the container's UID/GID (1000/1000).\nThe final, working docker-compose.yml file structure (with corrected variables and key) looked like this:\nyaml\n\nversion: \"3.8\"\nservices:\n bookstack:\n image: linuxserver/bookstack:latest\n container_name: bookstack\n environment:\n # ... other vars\n - APP_KEY=base64:imKs0ZgKNOF2W9Kiiq+8gDUqkRWBwh1mzOjrSgV/ntk= # Must be present\n - DB_USERNAME=bookstack # Correct name\n - DB_PASSWORD=bookstackpass # Correct name\n # ...\n# ... db service definition\nUpdating the official documentation or providing a robust Windows/WSL-specific guide might prevent these common roadblocks.\nThanks for the great work on the image!\nBest regards,\nDavi\n\n\n### Expected Behavior\n\n_No response_\n\n### Steps To Reproduce\n\nwindows 11 com docker \n\n### Environment\n\n```markdown\n- OS:Win 11\n- How docker service was installed:via site\n```\n\n### CPU architecture\n\nx86-64\n\n### Docker creation\n\n```bash\nIssues setting up BookStack using linuxserver/bookstack image on Windows 11/Docker/WSL2\nHello team,\nI was attempting to set up BookStack using your Docker image (linuxserver/bookstack:latest) on a Windows 11 machine running Docker Desktop with WSL2 integration.\nI encountered a few issues with existing documentation/guides that caused initial setup failures. I believe addressing these points could help future users on similar environments.\nThe problems and solutions were:\n1. Missing APP_KEY caused application halt\nThe main container failed to initialize because the APP_KEY environment variable was missing. The container entrypoint does not seem to auto-generate this if it's absent.\n Error message: The application key is missing, halting init!\n Solution: The key must be manually generated and added to the docker-compose.yml file before deployment.\n2. Inconsistent database environment variable names\nThe documentation/examples often use DB_USER and DB_PASS, but the linuxserver/bookstack image specifically expects different variable names, leading to authentication errors.\n Error message: Access denied for user 'database_username'@... (using password: YES)\n Solution: The variables must be named DB_USERNAME and DB_PASSWORD.\n3. Windows Volume Permissions (500 Internal Server Error)\nAfter fixing the database connection, I encountered a generic \"An unknown error occurred\" error (HTTP 500) because the container could not write to the persistent volumes created by Docker on the Windows file system.\n\n Error message: \"An unknown error occurred\" on the web page; logs showed a truncated Laravel exception.\n Solution: The volumes needed to be cleared completely using docker-compose down -v and then recreated by running docker-compose up -d to ensure correct permissions for the container's UID/GID (1000/1000).\nThe final, working docker-compose.yml file structure (with corrected variables and key) looked like this:\nyaml\n\nversion: \"3.8\"\nservices:\n bookstack:\n image: linuxserver/bookstack:latest\n container_name: bookstack\n environment:\n # ... other vars\n - APP_KEY=base64:imKs0ZgKNOF2W9Kiiq+8gDUqkRWBwh1mzOjrSgV/ntk= # Must be present\n - DB_USERNAME=bookstack # Correct name\n - DB_PASSWORD=bookstackpass # Correct name\n # ...\n# ... db service definition\nUpdating the official documentation or providing a robust Windows/WSL-specific guide might prevent these common roadblocks.\nThanks for the great work on the image!\nBest regards,\nDavi\n```\n\n### Container logs\n\n```bash\nIssues setting up BookStack using linuxserver/bookstack image on Windows 11/Docker/WSL2\nHello team,\nI was attempting to set up BookStack using your Docker image (linuxserver/bookstack:latest) on a Windows 11 machine running Docker Desktop with WSL2 integration.\nI encountered a few issues with existing documentation/guides that caused initial setup failures. I believe addressing these points could help future users on similar environments.\nThe problems and solutions were:\n1. Missing APP_KEY caused application halt\nThe main container failed to initialize because the APP_KEY environment variable was missing. The container entrypoint does not seem to auto-generate this if it's absent.\n Error message: The application key is missing, halting init!\n Solution: The key must be manually generated and added to the docker-compose.yml file before deployment.\n2. Inconsistent database environment variable names\nThe documentation/examples often use DB_USER and DB_PASS, but the linuxserver/bookstack image specifically expects different variable names, leading to authentication errors.\n Error message: Access denied for user 'database_username'@... (using password: YES)\n Solution: The variables must be named DB_USERNAME and DB_PASSWORD.\n3. Windows Volume Permissions (500 Internal Server Error)\nAfter fixing the database connection, I encountered a generic \"An unknown error occurred\" error (HTTP 500) because the container could not write to the persistent volumes created by Docker on the Windows file system.\n\n Error message: \"An unknown error occurred\" on the web page; logs showed a truncated Laravel exception.\n Solution: The volumes needed to be cleared completely using docker-compose down -v and then recreated by running docker-compose up -d to ensure correct permissions for the container's UID/GID (1000/1000).\nThe final, working docker-compose.yml file structure (with corrected variables and key) looked like this:\nyaml\n\nversion: \"3.8\"\nservices:\n bookstack:\n image: linuxserver/bookstack:latest\n container_name: bookstack\n environment:\n # ... other vars\n - APP_KEY=base64:imKs0ZgKNOF2W9Kiiq+8gDUqkRWBwh1mzOjrSgV/ntk= # Must be present\n - DB_USERNAME=bookstack # Correct name\n - DB_PASSWORD=bookstackpass # Correct name\n # ...\n# ... db service definition\nUpdating the official documentation or providing a robust Windows/WSL-specific guide might prevent these common roadblocks.\nThanks for the great work on the image!\nBest regards,\nDavi\n```","author":{"url":"https://github.com/davi-jorge-art","@type":"Person","name":"davi-jorge-art"},"datePublished":"2025-12-08T13:54:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/279/docker-bookstack/issues/279"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:576046ec-2502-1532-2cb9-7e546c40dec8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8150:170A5:10DB933:1635A8F:698ECE15 |
| html-safe-nonce | 73947d7d5dc03b93070f7c950c5551c535ba7780fd08d1d56d5b77c312821251 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTUwOjE3MEE1OjEwREI5MzM6MTYzNUE4Rjo2OThFQ0UxNSIsInZpc2l0b3JfaWQiOiI5MjEwODczNjU4MDI0NTc4NTgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 188a8d1c1fe0b94dfe7a03ed40b51068ac767ab0094211ad597cc04e5655db2a |
| hovercard-subject-tag | issue:3706503609 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/linuxserver/docker-bookstack/279/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f6ccc00bd07bfa5a2c28ef5319989b15619ce1d58d02b9afdb14a41cc58eef17/linuxserver/docker-bookstack/issues/279 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f6ccc00bd07bfa5a2c28ef5319989b15619ce1d58d02b9afdb14a41cc58eef17/linuxserver/docker-bookstack/issues/279 |
| og:image:alt | Is there an existing issue for this? I have searched the existing issues Current Behavior Issues setting up BookStack using linuxserver/bookstack image on Windows 11/Docker/WSL2 Hello team, I was a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | davi-jorge-art |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/linuxserver/docker-bookstack git https://github.com/linuxserver/docker-bookstack.git |
| octolytics-dimension-user_id | 12324908 |
| octolytics-dimension-user_login | linuxserver |
| octolytics-dimension-repository_id | 139479093 |
| octolytics-dimension-repository_nwo | linuxserver/docker-bookstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 139479093 |
| octolytics-dimension-repository_network_root_nwo | linuxserver/docker-bookstack |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width