mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[GH-ISSUE #731] Error using docker-compose.yml #494
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#494
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aaro-n on GitHub (Nov 17, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/731
Write the docker-compose.yml file according to the guide and there is an error at runtime.
Reference link
docker-compose.yml
`# docker-compose.yml
version: '3'
services:
bitwarden:
image: bitwardenrs/server:1.11.0
restart: always
volumes:
- ./bw-data:/data
environment:
WEBSOCKET_ENABLED: 'true' # Required to use websockets
SIGNUPS_ALLOWED: 'true' # set to false to disable signups
caddy:
image: abiosoft/caddy:1.0.3
restart: always
volumes:
- ./Caddyfile:/etc/Caddyfile:ro
- caddycerts:/root/.caddy
ports:
- 80:80 # needed for Let's Encrypt
- 443:443
environment:
ACME_AGREE: 'true' # agree to Let's Encrypt Subscriber Agreement
DOMAIN: 'XXX.XX.info' # CHANGE THIS! Used for Auto Let's Encrypt SSL
EMAIL: 'XX@gmail.com' # CHANGE THIS! Optional, provided to Let's Encrypt
volumes:
caddycerts:`
error code
`ERROR: for e620eeb1549d_bitwarden_caddy_1 Cannot start service caddy: OCI runtime create failed: container_linux.go:346: starting container process caused "process_linux.go:449: container init caused "rootfs_linux.go:58: mounting \"/home/www/bitwarden/Caddyfile\" to rootfs \"/var/lib/docker/overlay2/15048d74523e124378cfa169f5ed1a50f6c71ee1a954227c26936c3a68b35dd5/merged\" at \"/var/lib/docker/overlay2/15048d74523e124378cfa169f5ed1a50f6c71ee1a954227c26936c3a68b35dd5/merged/etc/Caddyfile\" caused \"not a directory\""": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
ERROR: for caddy Cannot start service caddy: OCI runtime create failed: container_linux.go:346: starting container process caused "process_linux.go:449: container init caused "rootfs_linux.go:58: mounting \"/home/www/bitwarden/Caddyfile\" to rootfs \"/var/lib/docker/overlay2/15048d74523e124378cfa169f5ed1a50f6c71ee1a954227c26936c3a68b35dd5/merged\" at \"/var/lib/docker/overlay2/15048d74523e124378cfa169f5ed1a50f6c71ee1a954227c26936c3a68b35dd5/merged/etc/Caddyfile\" caused \"not a directory\""": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
ERROR: Encountered errors while bringing up the project.`
@nicokaiser commented on GitHub (Jan 19, 2020):
Did you ensure that
./bw-dataand./Caddyfileexist (on the host) and are files? Otherwise Docker creates these as folders...@dani-garcia commented on GitHub (May 13, 2020):
Closed due to inactivity.