Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks
anyinu0 opened this issue Apr 14, 2023 · 3 comments
Open
2 tasks

Comments

@anyinu0
Copy link

anyinu0 commented Apr 14, 2023

描述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 anyinu0@xiaoan.com.

截图

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

@liuzh1516
Copy link

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

@leqii-com
Copy link

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

@liuzh1516
Copy link

@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容器开启特权模式先保证能用了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants