【发布时间】:2021-02-19 08:46:30
【问题描述】:
我为此苦苦思索了 6 个多小时,但无济于事。
每当我运行这段代码时:
docker run --name mina -d \
-P 8302:8302 \
--restart=always \
--mount "type=bind,source=`pwd`/keys,dst=/users/gb/keys,readonly" \
--mount "type=bind,source=`pwd`/.coda-config,dst=/users/gb/.coda-config" \
--mount "type=bind,source=`pwd`/peers.txt,dst=/users/gb/peers.txt,readonly" \
-e CODA_PRIVKEY_PASS=PASSWORD \
gcr.io/o1labs-192920/coda-daemon-baked:0.4.2-245a3f7-zenith-7a89538 \
daemon \
-peer-list-file /users/gilbertbassey/peers.txt \
--block-producer-key /users/gb/keys/my-wallet \
--insecure-rest-server \
--file-log-level Debug \
--log-level Info \
我明白了:
Unable to find image '8302:8302' locally
docker: Error response from daemon: pull access denied for 8302, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
我知道存储库存在是因为其他人访问了它。我正在使用 Docker 桌面在我的 Mackbook 终端上运行此代码。
更多上下文:我正在尝试连接到区块链网络。
编辑:
事实证明,由于我的密码,我一直遇到这个问题。它有一些 docker 误解/删除的特殊字符。具体来说,密码末尾的!! 似乎是问题所在。如何以 docker 不会误解的方式编写它?
【问题讨论】:
-
您有一个
-P选项,带有大写的“P”;这告诉 Docker 发布所有公开的端口并且不带参数,反过来,这会导致下一个参数被解释为图像名称。你的意思是-p带有小写的“p”吗?
标签: docker docker-for-mac