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

Fix the Docker Compose to mount the config.toml volume as file and not as a directory #432

Closed

Conversation

timoa
Copy link

@timoa timoa commented Oct 24, 2024

Fix an error on the docker-compose.yaml file since the config.toml volume mount does not specify the correct type.

It is mounting config.toml as a directory instead of a file:

docker compose up

[+] Running 2/0
 ✔ Container perplexica-searxng-1                             Running    0.0s                                                                                                                    
 ✔ Container perplexica-perplexica-frontend-1         Created   0.0s                                                                                                                           
Attaching to perplexica-backend-1, perplexica-frontend-1, searxng-1
Gracefully stopping... (press Ctrl+C again to force)
Error response from daemon: failed to create task for container: failed to create shim task: 
OCI runtime create failed: runc create failed: unable to start container process: error during container init: 
error mounting "/Users/***/***/Perplexica/config.toml" to rootfs at "/home/perplexica": 
mount /Users/***/***/Perplexica/config.toml:/home/perplexica (via /proc/self/fd/6), flags: 0x5000: 
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

@timoa timoa changed the title Fix the Docker Compose to mount the config.toml volume as file and not a directory Fix the Docker Compose to mount the config.toml volume as file and not as a directory Oct 24, 2024
@timoa
Copy link
Author

timoa commented Oct 24, 2024

I'm closing this PR since I made a new one with Dockerfile size optimization + security updates

@timoa timoa closed this Oct 24, 2024
@timoa timoa deleted the fix/docker-compose-config-toml branch November 13, 2024 04:21
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.

1 participant