Skip to content

The "docker is not running" error when using a GitHub codespace #62405

Open

Description

@TopCoder2K

What do you see as an issue?

I'm following this guide: https://github.com/apache/airflow/blob/main/contributing-docs/03a_contributors_quick_start_beginners.rst#option-b--one-click-github-codespaces. The forth step ("Install Breeze and start the development container") leads to

Docker is not running.
Please make sure Docker is installed and running.

I think the problem is with the last command (breeze start-airflow). I've already checked that Docker is installed:

[Breeze:3.10.19] root@21ae210c1c95:/opt/airflow$ docker --version
Docker version 29.2.1, build a5c7197
[Breeze:3.10.19] root@21ae210c1c95:/opt/airflow$ whereis docker
docker: /usr/bin/docker
[Breeze:3.10.19] root@21ae210c1c95:/opt/airflow$ sudo systemctl status docker
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down

It seems like a problem with a user access to Docker.

Solving the problem

No response

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added
    kind:bug
    needs-triage
    on Feb 24, 2026
  2. boring-cyborg commented on Feb 24, 2026

    @boring-cyborg

    Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.

  3. added
    area:dev-env
    on Feb 24, 2026
  4. added a commit that references this issue on Feb 27, 2026
    34d1bbe
  5. potiuk commented on Feb 27, 2026

    @potiuk
    Member

    Can you please verify that the PR #62580 solves your issue? If not, can you propose updating it (I am not sure if codespaces have docker socket created to do docker-in-docker) maybe some other steps are necessary.

    I would love if you could test it and suggest fixes @TopCoder2K

  6. TopCoder2K commented on Feb 28, 2026

    @TopCoder2K
    ContributorAuthor

    @potiuk, the forth step gave the following error:

    [Breeze:3.10.19] root@24b816f9b8e0:/opt/airflow$    docker info
    Client: Docker Engine - Community
     Version:    29.2.1
     Context:    default
     Debug Mode: false
     Plugins:
      buildx: Docker Buildx (Docker Inc.)
        Version:  v0.16.2
        Path:     /root/.docker/cli-plugins/docker-buildx
      compose: Docker Compose (Docker Inc.)
        Version:  v5.1.0
        Path:     /root/.docker/cli-plugins/docker-compose
    
    Server:
    ERROR: Error response from daemon: client version 1.53 is too new. Maximum supported API version is 1.43
    errors pretty printing info

    I did export DOCKER_API_VERSION=1.43 and docker info worked. The problem was with the too old Docker server version.

    The fifth step didn't go smoothly either. Firstly, curl -LsSf https://astral.sh/uv/install.sh | sh gave me a warning

    WARN: The following commands are shadowed by other commands in your PATH: uv uvx

    I think that uv is present in the used docker image (ghcr.io/apache/airflow/main/ci/python3.10:cache-linux-arm64, if I'm not mistaken), so there is no need to install one more uv (the already installed uv is 0.10.6 and the downloaded version is 0.10.7).
    Secondly, I got an error during building an image

     => ERROR importing cache manifest from ghcr.io/topcoder2k/airflow/main/ci/python3.10:cache-linux-amd64                                                     0.6s

    But this can be ignored, I think. The image was built after ≈20 minutes, but ... it seems that not all the containers were started. Here are the errors:

    ...
    docker: 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: exec: "/opt/airflow/scripts/in_container/run_fix_ownership.py": stat /opt/airflow/scripts/in_container/run_fix_ownership.py: no such file or directory: unknown
    ...
    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 "/opt/airflow/scripts/docker/entrypoint_ci.sh" to rootfs at "/entrypoint": mount src=/opt/airflow/scripts/docker/entrypoint_ci.sh, dst=/entrypoint, dstFd=/proc/thread-self/fd/12, flags=MS_BIND|MS_REC: 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 1 returned

    I'll try to investigate the last errors.

  7. TopCoder2K commented on Feb 28, 2026

    @TopCoder2K
    ContributorAuthor

    No, I'm unable to fix the errors. I need help from someone with knowledge of Breeze.

    Pasting here my current output:

    [Breeze:3.10.19] root@24b816f9b8e0:/opt/airflow$ breeze start-airflow
    
    The value 5.7 is not allowed for parameter mysql_version. Setting default value to 8.0
    
    The value 10 is not allowed for parameter postgres_version. Setting default value to 13
    
    The value 5.7 is not allowed for parameter mysql_version. Setting default value to 8.0
    
    The value 10 is not allowed for parameter postgres_version. Setting default value to 13
    Docker container engine detected.
    Good version of Docker: 29.2.1.
    Good version of docker-compose: 5.1.0
    Host python version is 3.10.19 (main, Feb 25 2026, 02:48:56) [GCC 12.2.0]
    Checking prek installed for /usr/local/bin/python3
    
    Package prek is installed. Good version 0.3.3 (>= 0.3.2)
    
    The output of the asset compilation is stored in: /opt/airflow/.build/ui/asset_compile.out
    
    Airflow will be using: LocalExecutor to execute the tasks.
    Docker image build is not needed for CI build as no important files are changed! You can add --force-build to force it
    docker: 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: exec: "/opt/airflow/scripts/in_container/run_fix_ownership.py": stat /opt/airflow/scripts/in_container/run_fix_ownership.py: no such file or directory: unknown
    
    Run 'docker run --help' for more information
    
    
    
    
    
                                      @&&&&&&@
                                     @&&&&&&&&&&&@
                                    &&&&&&&&&&&&&&&&
                                            &&&&&&&&&&
                                                &&&&&&&
                                                 &&&&&&&
                               @@@@@@@@@@@@@@@@   &&&&&&
                              @&&&&&&&&&&&&&&&&&&&&&&&&&&
                             &&&&&&&&&&&&&&&&&&&&&&&&&&&&
                                             &&&&&&&&&&&&
                                                 &&&&&&&&&
                                               &&&&&&&&&&&&
                                          @@&&&&&&&&&&&&&&&@
                       @&&&&&&&&&&&&&&&&&&&&&&&&&&&&  &&&&&&
                      &&&&&&&&&&&&&&&&&&&&&&&&&&&&    &&&&&&
                     &&&&&&&&&&&&&&&&&&&&&&&&         &&&&&&
                                                     &&&&&&
                                                   &&&&&&&
                                                @&&&&&&&&
                @&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
               &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
              &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
    
    
    
         @&&&@       &&  @&&&&&&&&&&&   &&&&&&&&&&&&  &&            &&&&&&&&&&  &&&     &&&     &&&
        &&& &&&      &&  @&&       &&&  &&            &&          &&&       &&&@ &&&   &&&&&   &&&
       &&&   &&&     &&  @&&&&&&&&&&&&  &&&&&&&&&&&   &&          &&         &&&  &&& &&& &&@ &&&
      &&&&&&&&&&&    &&  @&&&&&&&&&     &&            &&          &&@        &&&   &&@&&   &&@&&
     &&&       &&&   &&  @&&     &&&@   &&            &&&&&&&&&&&  &&&&&&&&&&&&     &&&&   &&&&
    
    &&&&&&&&&&&&   &&&&&&&&&&&&   &&&&&&&&&&&@  &&&&&&&&&&&&   &&&&&&&&&&&   &&&&&&&&&&&
    &&&       &&&  &&        &&&  &&            &&&                  &&&&    &&
    &&&&&&&&&&&&@  &&&&&&&&&&&&   &&&&&&&&&&&   &&&&&&&&&&&       &&&&       &&&&&&&&&&
    &&&        &&  &&   &&&&      &&            &&&             &&&&         &&
    &&&&&&&&&&&&&  &&     &&&&@   &&&&&&&&&&&@  &&&&&&&&&&&&  @&&&&&&&&&&&   &&&&&&&&&&&
    
    
    
    
                           Airflow Breeze Cheatsheet
    
        * Port forwarding:
    
            Ports are forwarded to the running docker containers for webserver and database
              * 12322 -> forwarded to Airflow ssh server -> airflow:22
              * 28080 -> forwarded to Airflow api server (Airflow 3) or webserver (Airflow 2) -> airflow:8080
              * 25555 -> forwarded to Flower dashboard -> airflow:5555
              * 25433 -> forwarded to Postgres database -> postgres:5432
              * 23306 -> forwarded to MySQL database  -> mysql:3306
              * 26379 -> forwarded to Redis broker -> redis:6379
              * 25672 -> forwarded to Rabbitmq -> rabbitmq:5672
    
            Direct links to those services that you can use from the host:
    
              * ssh connection for remote debugging: ssh -p 12322 airflow@localhost (password: airflow)
              * API server or webserver:    http://localhost:28080 (username: admin, password: admin)
              * Flower:    http://localhost:25555
              * Postgres:  jdbc:postgresql://localhost:25433/airflow?user=postgres&password=airflow
              * Mysql:     jdbc:mysql://localhost:23306/airflow?user=root
              * Redis:     redis://localhost:26379/0
    
        * How can I add my stuff in Breeze:
    
            * Your dags for webserver and scheduler are read from `/files/dags` directory
              which is mounted from folder in Airflow sources:
              * `/opt/airflow/files/dags`
    
            * Your plugins are read from `/files/plugins` directory
              which is mounted from folder in Airflow sources:
              * `/opt/airflow/files/plugins`
    
            * You can add `airflow-breeze-config` directory. Place it in
              `/opt/airflow/files/airflow-breeze-config` and:
                * Add `environment_variables.env` - to make breeze source the variables automatically for you
                * Add `.tmux.conf` - to add extra initial configuration to `tmux`
                * Add `init.sh` - this file will be sourced when you enter container, so you can add
                  any custom code there.
                * Add `requirements.
    
            * You can also share other files, put them under
              `/opt/airflow/files` folder
              and they will be visible in `/files/` folder inside the container.
    
        * Other options
    
        Check out `--help` for `breeze` command. It will show you other options, such as running
        integration or starting complete Airflow using `start-airflow` command as well as ways
        of cleaning up the installation.
    
        Make sure to run `breeze setup autocomplete` to get the commands and options auto-completable
        in your shell.
    
        You can disable this cheatsheet by running:
    
            breeze setup config --no-cheatsheet
    
    
    [+]  3/3te 3/3
     ✔ Network breeze_default             Created                                                                                                                0.1s
     ✔ Volume breeze_root-airflow-volume  Created                                                                                                                0.0s
     ✔ Volume breeze_airflow-cache-volume Created                                                                                                                0.0s
    Container breeze-airflow-run-da1cd5bd3217 Creating 
    Container breeze-airflow-run-da1cd5bd3217 Created 
    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 "/opt/airflow/scripts/docker/entrypoint_ci.sh" to rootfs at "/entrypoint": mount src=/opt/airflow/scripts/docker/entrypoint_ci.sh, dst=/entrypoint, dstFd=/proc/thread-self/fd/12, flags=MS_BIND|MS_REC: 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 1 returned
    
    [Breeze:3.10.19] root@24b816f9b8e0:/opt/airflow$ docker ps
    CONTAINER ID   IMAGE                                       COMMAND                  CREATED             STATUS             PORTS                                                                                                                                                                        NAMES
    24b816f9b8e0   ghcr.io/apache/airflow/main/ci/python3.10   "/bin/sh -c 'echo Co…"   About an hour ago   Up About an hour   0.0.0.0:22->22/tcp, [::]:22->22/tcp, 0.0.0.0:5555->5555/tcp, [::]:5555->5555/tcp, 0.0.0.0:6379->6379/tcp, [::]:6379->6379/tcp, 0.0.0.0:8080->8080/tcp, [::]:8080->8080/tcp   docker-compose-airflow-1
  8. added a commit that references this issue on Feb 28, 2026
    97d3843
  9. TopCoder2K commented on Mar 1, 2026

    @TopCoder2K
    ContributorAuthor

    @potiuk, I see that you merged the branch into main, but I don't see any changes that address several points from here. Should I test or is it too early and the work isn't finished yet?

  10. TopCoder2K commented on Mar 6, 2026

    @TopCoder2K
    ContributorAuthor

    @potiuk, could you please respond?

  11. potiuk commented on Mar 6, 2026

    @potiuk
    Member

    You have not responded when I asked in. The PR so I merged it. But if you say it's not fixed (I did some fixes) I will reopen it and lwt you continue fixing things following what I gave done. Feel free to rest and fix things

  12. reopened this on Mar 6, 2026
  13. potiuk commented on Mar 6, 2026

    @potiuk
    Member

    Sincealmost no one uses tit - it seems, you are likely best to fix things

  14. TopCoder2K commented on Mar 10, 2026

    @TopCoder2K
    ContributorAuthor

    You have not responded when I asked in

    @potiuk, maybe I should have answered in the PR, but please note that I had highlighted errors before the PR was merged.

    Since almost no one uses tit - it seems, you are likely best to fix things

    It seems that I fixed some errors, but as I wrote earlier I'm unable to fix failed to create task for container and need help from someone with knowledge of Breeze (I haven't used Breeze).

  15. potiuk commented on Mar 10, 2026

    @potiuk
    Member

    Then I markj it as good first issue - possibly somoene who uses codespaces might help. Also it might be good to refresh it and see what other issues are still not solved, this might help someone who can take a look to understand which issues are left,

  16. potiuk commented on Mar 10, 2026

    @potiuk
    Member

    BTW, Breeze is nothing else than docker container that is started with docker -compose. The issue is with codespaces - not the container. Note also that generally speaking breeze start-airflow is a command that should be started OUTSIDE of the container - so starting it inside the codespaces container has never been intended. So what you are trying to do is to start another set of containers from within another started container - which is definitely not straigthforward and possibly even something that devcontainers prevent.

    If I were you - I woudl rather focus on finding out if you can pass START_AIRFLOW env variable from outside of the container when it starts - that might actually work better. Look at entrypoint_ci.sh - the whole logic of what happens when breeze contaier is entered is explained there - I believe some other variables will need to be set for START_AIRFLOW to work.

    You might take a look what happens when you actually start the container from out side

    breeze start-airflow --verbose will print the exact docker-compose commands, env variables set that are used when breeze start-airflow is run outside of the container.

    Possibly finding a good way to map those variables to be set when you start your codespaces is a good solution - this way you would have airflow started immediately when you start the container rather than trying to run breeze start-airflow inside it and trying to start yet-another set of containers via docker-in-docker.

    Probably this way will be easier.

  17. added a commit that references this issue on Mar 11, 2026
    f3cdb92
  18. riddhisharma-sudo commented on Mar 19, 2026

    @riddhisharma-sudo

    Hi, I would like to work on this issue.

    I’m currently getting familiar with the Breeze environment and contribution workflow, and this seems like a great place to start since it’s related to development setup.

    Please let me know if there are any specific pointers or expected approach I should follow.

    Thanks!

  19. TopCoder2K commented on Mar 19, 2026

    @TopCoder2K
    ContributorAuthor

    @riddhisharma-sudo hi!

    Please let me know if there are any specific pointers

    Here are the problems that I encountered when I tried last time: comment_1, comment_2. Unfortunately, I've almost used all my limits in GitHub Codespaces, so I'm unable to try anything until April.

  20. riddhisharma-sudo commented on Mar 19, 2026

    @riddhisharma-sudo

    Thanks for sharing this!

    I’ll take a look at the issues you mentioned and try to reproduce the problem locally. I’m currently working on improving the Docker error message in Breeze and will update here with my findings.

    Please feel free to share any additional context if you think it would help.

  21. linxi507 commented on Mar 24, 2026

    @linxi507

    Hi! I’d like to investigate this issue.

    From the discussion, it seems the main problem is not that Docker is missing, but that breeze start-airflow is being run from inside a Codespaces/devcontainer environment, where the current error message is misleading.

    I plan to work on:

    1. clarifying the Codespaces execution context in the contributor docs, and
    2. improving the Breeze guidance/error message so it points users to the correct context instead of only saying “Docker is not running”.

    I’ve opened a PR to address this issue, focusing on improving the Codespaces documentation and making the Breeze error message more context-aware. #64192

  22. TopCoder2K commented on May 1, 2026

    @TopCoder2K
    ContributorAuthor

    @riddhisharma-sudo, @linxi507, how are you doing? I did rebasing and tried to create a codespace but still faced some of the issues mentioned in comment_1. The problem with docker info was fixed (no need to set DOCKER_API_VERSION anymore), though.

    BUT, due to some changes, it seems that I can no longer create a codespace in the free GitHub version: my codespace is stopped during the Airflow installation step (step [main 18/26] RUN --mount=type=cache,id=ci-amd64-2,target=/root/.cache/ bash /scripts/docker/install_airflow_when_building_images.sh).

  23. TopCoder2K commented on May 4, 2026

    @TopCoder2K
    ContributorAuthor

    By the way, the codespace was built on the second attempt (it seems that GitHub somehow predicts usage and stops the codespace when it decides that usage will soon break limits). I still have all the problems mentioned in comment_1, except for the problem with docker info.

    Moreover, prek almost works now (initially, it didn't run). Only mypy check doesn't work:

    Run mypy for devel-common.................................................................................Failed
    - hook id: mypy-devel-common
    - exit code: 1
    
      Running mypy for folders: ['devel-common']
      You can check the list of files in: /opt/airflow/files/mypy_files.txt
      Running command: breeze shell --python 3.10 --backend none --executor LocalExecutor --quiet --restart --skip-image-upgrade-check --tty disabled --warn-image-upgrade-needed --skip-environment-initialization --project-name prek 'bash -c '"'"'TERM=ansi mypy --follow-imports=silent @/files/mypy_files.txt '"'"''
      With environment:
      {
          'ADDITIONAL_DEV_APT_COMMAND': '',
          'ADDITIONAL_DEV_APT_DEPS': 'bash-completion dumb-init git gdb graphviz krb5-user     less libenchant-2-2 libgcc-11-dev libgeos-dev libpq-dev net-tools netcat-openbsd     openssh-server postgresql-client software-properties-common rsync tmux unzip vim xxd',
          'ADDITIONAL_PIP_INSTALL_FLAGS': '',
          'ADDITIONAL_PYTHON_DEPS': '',
          'AIRFLOW_BRANCH': 'main',
          'AIRFLOW_CI_BUILD_EPOCH': '10',
          'AIRFLOW_CI_IMAGE': 'ghcr.io/apache/airflow/main/ci/python3.10:latest',
          'AIRFLOW_CONSTRAINTS_LOCATION': '',
          'AIRFLOW_CONSTRAINTS_MODE': '',
          'AIRFLOW_CONSTRAINTS_REFERENCE': 'constraints-main',
          'AIRFLOW_ENV': 'development',
          'AIRFLOW_EXTRAS': '',
          'AIRFLOW_FALLBACK_NO_CONSTRAINTS_INSTALLATION': 'true',
          'AIRFLOW_HOME': '/root/airflow',
          'AIRFLOW_IMAGE_TYPE': 'ci',
          'AIRFLOW_INSTALLATION_METHOD': '.',
          'AIRFLOW_PIP_VERSION': '26.0.1',
          'AIRFLOW_PREK_VERSION': '0.3.10',
          'AIRFLOW_PYTHON_VERSION': '3.10.20',
          'AIRFLOW_REPO': 'apache/airflow',
          'AIRFLOW_SOURCES': '/workspaces/airflow',
          'AIRFLOW_USE_UV': 'true',
          'AIRFLOW_UV_VERSION': '0.11.8',
          'AIRFLOW_VERSION': '3.3.0.dev0',
          'AIRFLOW_VERSION_SPECIFICATION': '',
          'AIRFLOW__DATABASE__SQL_ALCHEMY_CONN': 'sqlite:////root/airflow/sqlite/airflow.db',
         [truncated]
      }
    
      The value 5.7 is not allowed for parameter mysql_version. Setting default value to 8.0
    
      The value 10 is not allowed for parameter postgres_version. Setting default value to 13
    
      The value 5.7 is not allowed for parameter mysql_version. Setting default value to 8.0
    
      The value 10 is not allowed for parameter postgres_version. Setting default value to 13
      Docker container engine detected.
      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 "/opt/airflow/scripts/docker/entrypoint_ci.sh" to rootfs at "/entrypoint": mount src=/opt/airflow/scripts/docker/entrypoint_ci.sh, dst=/entrypoint, dstFd=/proc/thread-self/fd/11, flags=MS_BIND|MS_REC: 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 1 returned
      Mypy check failed. You can run mypy locally with:
        prek run mypy-devel-common --all-files
      The hook uses dedicated virtualenv(s) and mypy cache(s) under .build/ so it does
      not touch your regular project .venv. You can clear both with:
        breeze down --cleanup-mypy-cache

    prek run mypy-devel-common --all-files gives the same error.

  24. sreecharan-desu commented on Sep 2, 2026

    @sreecharan-desu

    The entrypoint_ci.sh mount failure looks like a different problem than the daemon detection stuff in #62580 — more like host paths inside the codespace not matching what breeze tries to bind-mount. I haven't reproduced this in Codespaces (local macOS + Colima here), but the stale desktop-linux context issue I hit was separate from that class of error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:dev-envgood first issuekind:bugkind:documentationneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions