orange-lifeguard-33675
07/08/2025, 1:00 PMerror=map[message:open /etc/config/kratos/kratos.yml: no such file or directory stack_trace:
However, when I attach to the container's terminal, I can actually see the file being there.
ls -la /etc/config/kratos
-rw-r--r-- 1 root root 1929 Mar 18 23:20 kratos.yml
If I then run the serve command manually, it works as expected. So my issue only happens during the initial startup of the container.
kratos serve -c /etc/config/kratos/kratos.yml --watch-courier
Here's the compose config:
kratos:
depends_on:
- kratos-migrate
image: oryd/kratos:v1.2.0
restart: unless-stopped
environment:
- DSN=<redacted>
- LOG_LEVEL=trace
volumes:
- type: bind
source: /etc/deployment/ory/kratos
target: /etc/config/kratos
command: serve -c /etc/config/kratos/kratos.yml --watch-courier
networks:
- intranet
I know 1.2 is not the latest version, but I was playing around with this already a few months back and didn't have any issues then. Not sure what's going on now.
If anyone has any idea, I'd love to hear. Thank you!ancient-magazine-81061
07/08/2025, 3:05 PMkratos.yml
into /etc/deployment/ory/kratos
. As that is the Host path.orange-lifeguard-33675
07/08/2025, 9:57 PMorange-lifeguard-33675
07/08/2025, 9:58 PMancient-magazine-81061
07/09/2025, 10:40 AMorange-lifeguard-33675
07/09/2025, 7:20 PMancient-magazine-81061
07/09/2025, 7:23 PMdocker system prune -a
.
It does the following:
WARNING! This will remove:
- all stopped containers
- all networks not used by at least one container
- all images without at least one container associated to them
- all build cache
Are you sure you want to continue? [y/N]
orange-lifeguard-33675
07/09/2025, 7:24 PMorange-lifeguard-33675
07/09/2025, 7:24 PMorange-lifeguard-33675
07/09/2025, 7:25 PMorange-lifeguard-33675
07/09/2025, 7:25 PMancient-magazine-81061
07/09/2025, 7:25 PMorange-lifeguard-33675
07/09/2025, 7:26 PM