我试图建立一个基于
this one
,这是基于Debian Stretch的,并且在运行时不断出现这种错误
apt-get update
:
W: GPG error: http://security.debian.org stretch/updates InRelease: Couldn't create temporary file /tmp/apt.conf.FNG6R8 for passing config to apt-key
这是在添加
mkdir /tmp && chmod 777 /tmp \
到Dockerfile
RUN
. 但问题是,Docker图像是否缺少tmp文件?是不是只有基于
buildpack-deps:stretch-scm
?有没有比手工制作更好的方法来处理这个问题
/tmp
目录?