Skip to content
Discussion options

You must be logged in to vote

This is a known issue. I looked at the cross source (src/docker/shared.rs line ~1420-1431) and the problem is that cross checks if the driver name contains "overlay", then tries to read MergedDir from the GraphDriver data. But overlayfs (the newer driver name) structures that data differently than overlay2, so it either can't find MergedDir or hits the fallback error.

The quickest fix for GitHub Actions is to force the Docker daemon back to overlay2 before running cross:

- name: Fix Docker storage driver
  run: |
    echo '{"storage-driver": "overlay2"}' | sudo tee /etc/docker/daemon.json
    sudo systemctl restart docker

Put that as the first step in your job, before any cross commands. …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ginodamario
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants