dockerfile构建容器时报错

mkdir: cannot create directory ‘/opt/service’: Permission denied
解决方法:
先切换到USER root来创建目录:

USER root
RUN mkdir -p /opt/service
USER jenkins

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐