Skip to content

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

@feenst

Description

@feenst

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions