sovereign-sdk: Cannot build containers in demo-rollup example
Summary
make start command fails in examples/demo-rollup with error:
Error response from daemon: Mounts denied:
The path /credentials is not shared from the host and is not known to Docker.
I’ve checked and ensured that the /credentials path is shared.
Steps to reproduce
- Use
nightlybranch of this repo - Mac M1 with MacOS Monterey
- Use Docker Desktop 4.25.1
- Run
make startinexamples/demo-rollup
Expected Result
Successfully run containers docker-sequencer-0-1 and docker-validator-1
Actual Result
➜ demo-rollup git:(nightly) make start
Starting local celestia network setup
/bin/sh: line 0: test: : integer expression expected
[+] Building 65.7s (23/23) FINISHED docker:desktop-linux
=> [sequencer-0 internal] load build definition from Dockerfile.bridge 10.1s
=> => transferring dockerfile: 560B 10.0s
=> [sequencer-0 internal] load .dockerignore 10.1s
=> => transferring context: 2B 10.0s
=> [validator internal] load .dockerignore 10.1s
=> => transferring context: 2B 10.0s
=> [validator internal] load build definition from Dockerfile.validator 10.1s
=> => transferring dockerfile: 530B 10.0s
=> [validator internal] load metadata for ghcr.io/celestiaorg/celestia-app:v1.0.0 21.6s
=> [sequencer-0 internal] load metadata for docker.io/library/alpine:3.18.3 25.4s
=> [sequencer-0 internal] load metadata for ghcr.io/celestiaorg/celestia-node:v0.11.0-rc15 21.6s
=> [validator auth] celestiaorg/celestia-app:pull token for ghcr.io 0.0s
=> [sequencer-0 auth] celestiaorg/celestia-node:pull token for ghcr.io 0.0s
=> [sequencer-0 auth] library/alpine:pull token for registry-1.docker.io 0.0s
=> [validator stage-0 1/4] FROM docker.io/library/alpine:3.18.3@sha256:7144f7bab3d4c2648d7e59409f15ec52a18006a128c733fcff20d3a4a54ba44a 0.0s
=> [validator internal] load build context 10.0s
=> => transferring context: 5.57kB 10.0s
=> [validator] FROM ghcr.io/celestiaorg/celestia-app:v1.0.0@sha256:41d042a00d1adcdde1c038f5f3c82cc122e0d64c00f47e58ff856764795f5324 0.0s
=> [sequencer-0 internal] load build context 10.0s
=> => transferring context: 2.19kB 10.0s
=> [sequencer-0] FROM ghcr.io/celestiaorg/celestia-node:v0.11.0-rc15@sha256:077b585d37d470b68eeb17cbe50a7555e6e89a3b6161d73f06eb5f0d280b990c 0.0s
=> CACHED [validator stage-0 2/4] RUN apk update && apk add --no-cache bash jq 0.0s
=> CACHED [sequencer-0 stage-0 3/5] COPY --from=ghcr.io/celestiaorg/celestia-node:v0.11.0-rc15 /bin/celestia /bin/celestia 0.0s
=> CACHED [sequencer-0 stage-0 4/5] COPY --from=ghcr.io/celestiaorg/celestia-node:v0.11.0-rc15 /bin/cel-key /bin/cel-key 0.0s
=> CACHED [sequencer-0 stage-0 5/5] COPY ./run-bridge.sh /opt/entrypoint.sh 0.0s
=> [sequencer-0] exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:b3402a1c55eaf5e3bec5a72a0dfd881429881edcae04d4cde65a7bbe56fe39ec 0.0s
=> => naming to docker.io/library/bridge 0.0s
=> CACHED [validator stage-0 3/4] COPY --from=ghcr.io/celestiaorg/celestia-app:v1.0.0 /bin/celestia-appd /bin/celestia-appd 0.0s
=> CACHED [validator stage-0 4/4] COPY ./run-validator.sh /opt/entrypoint.sh 0.0s
=> [validator] exporting to image 0.0s
=> => exporting layers 0.0s
=> => writing image sha256:67b4fe240079b6db6b0ac1d4253c8ba1b8c820e5259615a59428b25fa8fa830d 0.0s
=> => naming to docker.io/library/validator 0.0s
[+] Running 2/2
✔ Container docker-sequencer-0-1 Recreated 0.0s
✔ Container docker-validator-1 Recreated 0.0s
Error response from daemon: Mounts denied:
The path /credentials is not shared from the host and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.
See https://docs.docker.com/desktop/mac for more info.
make: *** [start-network] Error 1
Additional Information
docker/credentials is contained within Users directory, which is shared:
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Comments: 15 (8 by maintainers)
@dubbelosix yep, that worked. Thanks for your help!