Open fuminori-ido opened 4 years ago
I traced step by step and Intermediate file in image looks root owner as follows:
-rw-r--r-- 1 root root 1350 Aug 31 05:16 /tmp/itamae_tmp/1598851010.8555338/group
at Specinfra::Backend::Docker#docker_run!. This is why chmod root file by USER fails.
Next; why this intermediate file is root:root ?
Now I found out that is why.
ADD base dest
Dockerfile ADD command supports --chown as mentioned here, but docker gem looks not used this option so that owner:group become root:root.
When Dockerfile is:
and create image by:
docker build --tag itamae-docker-test:base - <Dockerfile
Then, the following recipe:
fails as follows:
while 'execution' resource works fine under the same USER.