无法在 mac osx 上启动 docker 容器



我正在尝试在我的Macbook上的docker容器中使用Gluu服务器,但徒劳无功。以下是有关如何启动 Gluu 服务器单主机的说明。它失败并出现以下错误

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.

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

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

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

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

检查更新:

yum check-update

更新系统

yum update

然后重新启动

reboot 

在此之后,按照记录的说明运行为 sudo。

相关内容

最新更新