apollo icon indicating copy to clipboard operation
apollo copied to clipboard

docker镜像运行,提示 Error: Unable to access jarfile apollo-adminservice.jar

Open anyinu0 opened this issue 3 years ago • 3 comments

描述bug

简洁明了地描述一下bug

复现

通过如下步骤可以复现:

期望

简介明了地描述你希望正常情况下应该发生什么

Please verify your email address Before you can contribute on GitHub, we need you to verify your email address.

An email containing verification instructions was sent to [email protected].

截图

image

如果可以,附上截图来描述你的问题

从hub.docker.com上拉取的官方docker镜像,在一台服务器上运行,发现如下错误,每个2.1.0版本的都是这样的提醒

额外的细节和日志

  • 版本:apollo-adminservice:2.1.0
  • 错误日志 Error: Unable to access jarfile apollo-adminservice.jar
  • 配置:
  • 平台和操作系统

centos 7.5.1804 Docker version 18.03.1-ce

anyinu0 avatar Apr 14 '23 09:04 anyinu0

+1,win11 vmware centos7。但mac os下没问题

liuzh1516 avatar Jun 26 '23 01:06 liuzh1516

@liuzh1516 貌似没人理我们,哈哈

leqii-com avatar Jun 26 '23 01:06 leqii-com

@leqii-com 哈哈,那就自己查吧,我重新制作镜像测试发现是startup.sh中的for i in ls $SERVICE_NAME-*.jar 2>/dev/null``这句执行时报错ls: cannot access 'apollo-configservice-2.1.0-sources.jar': Operation not permitted,可以确定是运行startup.sh的用户权限问题,具体原因未查明,只能暂时先在容器运行参数添加--privileged或docker-compose.yml中添加privileged: true容器开启特权模式先保证能用了

liuzh1516 avatar Jun 27 '23 01:06 liuzh1516