When Dockerfile is:
and create image by:
docker build --tag itamae-docker-test:base - <Dockerfile
Then, the following recipe:
remote_file '/tmp/x.remote_user' do
source '/etc/group'
end
fails as follows:
$ itamae docker --image itamae-docker-test:base --tag itamae-docker-test:remote_user recipe-remote_file.rb
INFO : Starting Itamae...
INFO : Recipe: /home/.../recipe-remote_file.rb
ERROR : stderr | chmod: changing permissions of '/tmp/itamae_tmp/1598837380.5531852/group': Operation not permitted
ERROR : Command `chmod 0600 /tmp/itamae_tmp/1598837380.5531852/group` failed. (exit status: 1)
ERROR : remote_file[/tmp/x.remote_user] Failed.
while 'execution' resource works fine under the same USER.