docker启动镜像时,运行可执行文件报"permission denied"

错误信息:

1
2
2017-04-28 17:38:20:docker: {"message":"containerd: container not started"}
2017-04-28 17:38:26:container_linux.go:247: starting container process caused "exec: \"/IntelliJ/license_server\": permission denied"

解决方案:
在Dockerfile中增加

1
RUN chmod +x ./license_server

参考:
https://github.com/facebook/fbctf/issues/431