0

我徒劳地尝试在我的 macbook 上的 docker 容器中使用 Gluu 服务器。以下是如何启动Gluu Server Single Host的说明。它失败并出现以下错误

pmac:single-host root# ./run_all.sh 
[I] Determining OS Type and Attempting to Gather External IP Address
Host is detected as Mac
Is this the correct external IP Address: 192.168.1.103 [Y/n]? Y
[I] Preparing cluster-wide config and secret
[I] Checking existing config in Consul
[W] Unable to get config in Consul; retrying ...
[W] Unable to get config in Consul; retrying ...
[W] Unable to get config in Consul; retrying ...
[W] Configuration not found in Consul
docker: Error response from daemon: OCI runtime create failed: container_linux.go:346: 
starting container process caused "process_linux.go:449: 
container init caused \"rootfs_linux.go:58: mounting \\\"/Users/peeyush/projects/community-edition-containers-4.0/examples/single-host/generate.json\\\" 
to rootfs \\\"/var/lib/docker/overlay2/b7c623d9c7347ee09d7bda4dee929b5eb3bbbceb9ff956843cd693fb7fa3cbf5/merged\\\" 
at \\\"/var/lib/docker/overlay2/b7c623d9c7347ee09d7bda4dee929b5eb3bbbceb9ff956843cd693fb7fa3cbf5/merged/app/db/generate.json\\\" 
caused \\\"open /var/lib/docker/overlay2/b7c623d9c7347ee09d7bda4dee929b5eb3bbbceb9ff956843cd693fb7fa3cbf5/merged/app/db/generate.json: 
permission denied\\\"\"": unknown.
4

2 回答 2

0

尝试运行sudo ./run_all.sh并让我知道

于 2020-05-20T14:55:10.500 回答
0

对于使用 RHEL 或 Centos 解决此问题的其他任何人,我在 RHEL 7.3 上遇到了同样的问题

显然,在较旧的 RHEL 内核版本中,由于树外补丁,他们拒绝在用户命名空间内创建挂载命名空间。显然 RHEL 7.5 将解决这个问题。

我将我的操作系统更新到 7.9,它解决了这个问题:

检查更新:

yum check-update

更新系统

yum update

然后重启

reboot 

在此之后,按照文档中的说明以 sudo 运行。

于 2021-03-14T23:16:21.267 回答