分明在 Dockerfile 里设置权限了。
error.info
docker: Error response from daemon: oci runtime error: container_linux.go:247: starting container process caused "exec: \"/data/ops/docker-entrypoint.sh\": permission denied".
Dockerfile
ENV TZ "Asia/Shanghai"
ENV TERM xterm
#自定义源
ADD sources.list /etc/apt/sources.list
VOLUME ["/data/ops"]
RUN mkdir -p /data/ops
COPY . /data/ops
WORKDIR /data/ops
RUN python3 -m pip install -r requirements.txt -i https://pypi.douban.com/simple
RUN chmod 777 /data/ops/docker-entrypoint.sh
RUN ls -lah /data/ops
EXPOSE 4000
ENTRYPOINT ["/data/ops/docker-entrypoint.sh"]
权限:
-rw-r--r-- 1 root root 308 Apr 18 16:14 docker-entrypoint.sh
权限不对哎
1
billlee 2017-04-23 19:25:12 +08:00
VOLUME 可以这样用?
|
2
windfarer 2017-04-23 19:47:18 +08:00 via Android
volume 使用的姿势不正确吧
|
3
bdbai 2017-04-23 20:00:41 +08:00 via Android
把 volume 指令全去掉试试
|
4
Bardon 2017-04-23 20:59:10 +08:00
entrypoint 脚本放到 volume 以外的任何目录
|