atomicDEX-API
atomicDEX-API copied to clipboard
Permission denied when running docker tests
I keep getting a Permission denied error:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }', mm2src/mm2_main/tests/docker_tests_main.rs:199:58
This happens when I switch branches on Linux and run docker tests as cargo test --test 'docker_tests_main' --features run-docker-tests --no-fail-fast -- --nocapture.
git clean returns: warning: failed to remove .docker/container-runtime/atom-testnet-data/data/snapshots/1000/3/0: Permission denied
because this file has the root user only in the ACL:
-rw-r--r-- 1 root root 179815 Mar 12 09:10 .docker/container-runtime/atom-testnet-data/data/snapshots/1000/3/0
Can be resolved by sudo rm -rf .docker/container-runtime.
Creating the issue because this had not happened before and may affect CI
(Could this be due to the docker running as root?)