Rails app fails to deploy

I am following the steps mentioned in the deploy Rails app but I get this error:


=> resolve image config for docker.io/docker/dockerfile:experimental 2.4s
=> CACHED docker-image://docker.io/docker/dockerfile:experimental@sha256:600e5c62eedff338b3f7a0850beb7c05866e0ef27b2d2e8c02aa468e78496ff5 0.0s
=> [internal] load metadata for Quay 1.1s
=> [base 1/6] FROM Quay 0.0s
=> CACHED [base 2/6] RUN mkdir /app 0.0s
=> CACHED [base 3/6] WORKDIR /app 0.0s
=> CACHED [base 4/6] RUN mkdir -p tmp/pids 0.0s
=> CACHED [base 5/6] RUN curl https://get.volta.sh | bash 0.0s
=> ERROR [base 6/6] RUN volta setup && volta install node@16 && volta install yarn@2 9.2s

[base 6/6] RUN volta setup && volta install node@16 && volta install yarn@2:
#11 9.045 error: Could not set “yarn” to executable
#11 9.045
#11 9.045 Please ensure you have correct permissions to the Volta directory.
#11 9.046 Error details written to /root/.volta/log/volta-error-2022-06-19_11_08_12.088.log


Error error building: executor failed running [/bin/bash -c volta setup && volta install node@${NODE_VERSION} && volta install yarn@${YARN_VERSION}]: exit code: 7