dajobe / hbase-docker

HBase running in Docker
https://hub.docker.com/r/dajobe/hbase/
328 stars 189 forks source link

Build fails with "rm: cannot remove '/build': Directory not empty" error #20

Open feenst opened 7 years ago

feenst commented 7 years ago

Running on CentOS 7 Docker version 17.06.2-ce, build cec0b72

The image doesn't get built if the rm -rf /build is included here. If I remove that command, the image builds.

I get the following if I enter a container based on that image:

root@hbase-docker:/build# ls -ltra
ls: cannot access 'build-hbase.sh': No such file or directory
ls: cannot access 'cleanup-hbase.sh': No such file or directory
ls: cannot access 'config-hbase.sh': No such file or directory
ls: cannot access 'prepare-hbase.sh': No such file or directory
ls: cannot access 'start-hbase.sh': No such file or directory
total 4
??????????? ? ?    ?       ?            ? start-hbase.sh
??????????? ? ?    ?       ?            ? prepare-hbase.sh
??????????? ? ?    ?       ?            ? config-hbase.sh
??????????? ? ?    ?       ?            ? cleanup-hbase.sh
??????????? ? ?    ?       ?            ? build-hbase.sh
dajobe commented 7 years ago

Can you provide a build log from the 'docker build' line onwards. The 'ls' you show above seems to be a bad filesystem / docker VFS issue, to me.

feenst commented 7 years ago

Log attached below.

docker_build.log