Skip to content

Not able to run the scheduler container image with Docker locally #8604

Description

@mathieu-benoit

I'm following this guide https://docs.dapr.io/operations/hosting/self-hosted/self-hosted-with-docker/#run-using-docker-compose to run the scheduler, but the container is not starting, with this error in the logs:

level=fatal msg="Fatal error running scheduler: failed to create data dir: mkdir data/default-dapr-scheduler-server-0: permission denied\nfailed to serve: grpc: the server has been stopped" instance=7e97385035a1 scope=dapr.scheduler type=log ver=1.15.3

Here is what I do:

name: test
services:
    scheduler:
        command:
            - ./scheduler
            - --port
            - "50007"
        image: daprio/dapr
        ports:
            - target: 50007
              published: "50007"
        volumes:
            - type: tmpfs
              target: /data
              tmpfs:
                size: "128"
$ docker inspect 7e97385035a1 --format '{{ json .Mounts }}'
[{"Type":"tmpfs","Source":"","Destination":"/data","Mode":"","RW":true,"Propagation":""}]

Am I missing something?

Notes:

  • I also tried with the daprio/scheduler container image, same error.
  • Running this from GitHub Codespace: Linux codespaces-cee837 6.8.0-1021-azure #25~22.04.1-Ubuntu SMP Thu Jan 16 21:37:09 UTC 2025 x86_64 GNU/Linux
  • All the other containers are running successfully: my own workloads, placement, daprd.

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssues and PRs without response

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions