一、/tmp权限问题
当我们根据Dockerfile使用docker build创建镜像时,出现下面的错误:
解决方法请点击,通过查看错误发现第六步apt-get update错误,问题在于我们的容器的/tmp目录权限错误,我们找到Dockerfile的RUN命令,并添加权限修改命令:
RUN chmod 1777 /tmp && apt-get update && apt-get upgrade -y && apt-get install -y.........