按文档部署报错

环境:Mac版本10.14.4,cita版本0.22
1.下载源码,执行编译 ./env.sh make release
./env.sh: line 4: realpath: command not found

usage: dirname path

usage: dirname path

cp: /localtime: Permission denied

Start docker container cita_run_container …

72f4e1dc7dc287bab90d2db4be79995d704a6a84cfca0d91ca86f7a74f99ef0b

docker: Error response from daemon: Mounts denied:

The path /localtime

is not shared from OS X and is not known to Docker.

You can configure shared paths from Docker -> Preferences… -> File Sharing.

See https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.

.

Error response from daemon: Container 72f4e1dc7dc287bab90d2db4be79995d704a6a84cfca0d91ca86f7a74f99ef0b is not running
2.下载编译好的发布包直接部署,生成节点配置文件时报错
No such node directory: --super_admin
3. 使用docker-compose方式
cp: failed to get attributes of ‘./test-chain’: No such file or directory
求帮助,求解答,多谢!

最好是下载发布包。

能把你执行的命令,以及出错的情况描述得更清楚一些吗?

执行的命令是USER_ID=id -u $USER docker-compose up
输出结果是Starting config … done
Starting node0 … done
Starting node1 … done
Starting node2 … done
Starting node3 … done
Attaching to config, node1, node2, node0, node3
config | useradd: user ‘user’ already exists
config | No such node directory: create
node1 | useradd: user ‘user’ already exists
node0 | useradd: user ‘user’ already exists
node2 | useradd: user ‘user’ already exists
config | cp: failed to get attributes of ‘./test-chain’: No such file or directory
node3 | useradd: user ‘user’ already exists
config | cp: failed to get attributes of ‘./test-chain’: No such file or directory
config | cp: failed to get attributes of ‘./test-chain’: No such file or directory
config | cp: failed to get attributes of ‘./test-chain’: No such file or directory
config exited with code 1

提示很明确了是 realpath 缺少了

可用brew 安装 coreutils 解决:

brew install coreutils
1赞

按照你说的,源码方式编译通过,并且部署成功,谢谢.