{"action":"created","issue":{"url":"https://api.github.com/repos/adelton/docker-freeipa/issues/62","repository_url":"https://api.github.com/repos/adelton/docker-freeipa","labels_url":"https://api.github.com/repos/adelton/docker-freeipa/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/adelton/docker-freeipa/issues/62/comments","events_url":"https://api.github.com/repos/adelton/docker-freeipa/issues/62/events","html_url":"https://github.com/adelton/docker-freeipa/issues/62","id":141589279,"number":62,"title":"Docker build can not remove directory","user":{"login":"iconoeugen","id":3206281,"avatar_url":"https://avatars.githubusercontent.com/u/3206281?v=3","gravatar_id":"","url":"https://api.github.com/users/iconoeugen","html_url":"https://github.com/iconoeugen","followers_url":"https://api.github.com/users/iconoeugen/followers","following_url":"https://api.github.com/users/iconoeugen/following{/other_user}","gists_url":"https://api.github.com/users/iconoeugen/gists{/gist_id}","starred_url":"https://api.github.com/users/iconoeugen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iconoeugen/subscriptions","organizations_url":"https://api.github.com/users/iconoeugen/orgs","repos_url":"https://api.github.com/users/iconoeugen/repos","events_url":"https://api.github.com/users/iconoeugen/events{/privacy}","received_events_url":"https://api.github.com/users/iconoeugen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-17T13:53:22Z","updated_at":"2016-03-22T13:41:30Z","closed_at":null,"body":"I tried to build the docker image for fedora 23 (master branch), but it fails with the error:\r\n\r\n```\r\nStep 23 : COPY volume-data-list volume-data-mv-list volume-data-autoupdate /etc/\r\n ---> 92b06fe6b010\r\nRemoving intermediate container b669e7a14aca\r\nStep 24 : RUN set -e ; cd / ; mkdir /data-template ; cat /etc/volume-data-list | while read i ; do echo $i ; if [ -e $i ] ; then tar cf - .$i | ( cd /data-template && tar xf - ) ; fi ; mkdir -p $( dirname $i ) ; if [ \"$i\" == /var/log/ ] ; then mv /var/log /var/log-removed ; else rm -rf $i ; fi ; ln -sf /data${i%/} ${i%/} ; done\r\n ---> Running in a6d312129375\r\n/etc/certmonger/\r\nrm: cannot remove '/etc/certmonger/': Directory not empty\r\nThe command '/bin/sh -c set -e ; cd / ; mkdir /data-template ; cat /etc/volume-data-list | while read i ; do echo $i ; if [ -e $i ] ; then tar cf - .$i | ( cd /data-template && tar xf - ) ; fi ; mkdir -p $( dirname $i ) ; if [ \"$i\" == /var/log/ ] ; then mv /var/log /var/log-removed ; else rm -rf $i ; fi ; ln -sf /data${i%/} ${i%/} ; done' returned a non-zero code: 1\r\n```\r\n\r\nMy host is:\r\n```\r\n# docker -v\r\nDocker version 1.9.1, build 7206621\r\n# cat /etc/redhat-release\r\nFedora release 23 (Twenty Three)\r\n```"},"comment":{"url":"https://api.github.com/repos/adelton/docker-freeipa/issues/comments/199820504","html_url":"https://github.com/adelton/docker-freeipa/issues/62#issuecomment-199820504","issue_url":"https://api.github.com/repos/adelton/docker-freeipa/issues/62","id":199820504,"user":{"login":"iconoeugen","id":3206281,"avatar_url":"https://avatars.githubusercontent.com/u/3206281?v=3","gravatar_id":"","url":"https://api.github.com/users/iconoeugen","html_url":"https://github.com/iconoeugen","followers_url":"https://api.github.com/users/iconoeugen/followers","following_url":"https://api.github.com/users/iconoeugen/following{/other_user}","gists_url":"https://api.github.com/users/iconoeugen/gists{/gist_id}","starred_url":"https://api.github.com/users/iconoeugen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iconoeugen/subscriptions","organizations_url":"https://api.github.com/users/iconoeugen/orgs","repos_url":"https://api.github.com/users/iconoeugen/repos","events_url":"https://api.github.com/users/iconoeugen/events{/privacy}","received_events_url":"https://api.github.com/users/iconoeugen/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T13:41:30Z","updated_at":"2016-03-22T13:41:30Z","body":"The same problem:\r\n\r\n```\r\n# docker run 92b06fe6b010 sh -c 'whoami ; ls -ld /etc/certmonger ; rm -rf /etc/certmonger/'\r\nroot\r\ndrwxr-xr-x. 2 root root 28 Mar 17 13:45 /etc/certmonger\r\nrm: cannot remove '/etc/certmonger/': Directory not empty\r\n```"}}