Why tar command included in a dockerfile fails with the message "Directory renamed before its status could be extracted" in Red Hat Enterprise Linux 7 ?
Issue
- Why tar command included in a dockerfile fails with the message "Directory renamed before its status could be extracted" in Red Hat Enterprise Linux 7 ?
- tar fails as shown below
docker build -t testtar .
Sending build context to Docker daemon 147.7 MB
Step 1/3 : FROM registry.access.redhat.com/rhel7
---> fe3bf9861409
Step 2/3 : COPY rocket.chat.tgz /rocket.chat.tgz
---> 65b45dcbea6c
Removing intermediate container 087802ca28cf
Step 3/3 : RUN set -x && mkdir -p /app && tar -zxf rocket.chat.tgz -C /app && rm rocket.chat.tgz
---> Running in 64bba6dc8200
+ mkdir -p /app
+ tar -zxf rocket.chat.tgz -C /app
tar: bundle/programs/server/npm/node_modules/meteor/matb33_collection-hooks/node_modules/.bin: Directory renamed before its status could be extracted
tar: bundle/programs/server/npm/node_modules/meteor/rocketchat_internal-hubot/node_modules/.bin: Directory renamed before its status could be extracted
tar: bundle/programs/server/npm/node_modules/meteor/rocketchat_internal-hubot/node_modules: Directory renamed before its status could be extracted
tar: bundle/programs/server/npm/node_modules/meteor/rocketchat_internal-hubot: Directory renamed before its status could be extracted
tar: bundle/programs/server/npm/node_modules/meteor/http/node_modules/.bin: Directory renamed before its status could be extracted
tar: bundle/programs/server/npm/node_modules/meteor/http/node_modules: Directory renamed before its status could be extracted
tar: bundle/programs/server/npm/node_modules/meteor/http: Directory renamed before its status could be extracted
Environment
- Red Hat Enterprise Linux 7
- docker-1.12.6-X or docker-1.13.1-X
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.