Closed ChrisThePCGeek closed 2 years ago
Either are accepted extensions and technically I think yaml
is correct but most people use the 3 character extension due to legacy reason.
Also, this is the extension that CrowdSec uses inside of the container so I am just being consistent:
https://docs.crowdsec.net/docs/v1.0/acquisitions/format/#acquisition-directives
We were talking on the discord, and I thought that PCGeek meant that the typo was in your docs, not the actual docker-compose. The guide in the docs shows -
cd config touch acquis.yml nano acquis.yml docker-compose up -d --force-recreate
When I originally created the container, it created a directory named acquis.yaml. I got this error after-
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "crowdsec/config/acquis.yaml" to rootfs at "/etc/crowdsec/acquis.yaml": mount crowdsec/config/acquis.yaml:/etc/crowdsec/acquis.yaml (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
So, after a bit of confusion and research, I learned that if you make a mistake setting up docker volumes, you will need to remove the volumes manually. I was just using docker-compose down
and not really removing the volumes.
docker system prune --volumes
fixed it for me.
But the documenation at https://docs.technotim.live/posts/crowdsec-traefik/ should show acquis.yaml
not acquis.yml
., when creating the file to specify where the Traefik logs are.
Ah, I see what you mean! Yeah, I will update the right spot in the docs!
I fixed it in the docs!
file name says .yaml in docker-compose but should be .yml