Not able to execute RUN commands in Dockerfile

Contents of the Dockerfile:

RUN echo "hello world"
ENTRYPOINT ["/usr/sbin/httpd","-D","FOREGROUND"]

When I try to build an image from this file, I see the following:

  • How can I edit an existing docker image metadata?
  • Docker for GUI-based environments?
  • Docker pull gives error unkown blob for microsoft/windowsservercore
  • Running JUnit Tests in parallel with Docker
  • How to convert a systemctl command to supervisord command
  • Unable to connect to an ibmnode:latest-based container with putty over ssh
  • permission denied Removing intermediate container

    when docker tries to execute the RUN command


    • This error is irrespective of the content of the RUN command.
    • Removing it ensures the build completes without issues.
    • I am able to build from the same docker file and image on another host.
    • “docker info” produced similar information on both machines.

    How can I debug this further to see what the issue is?

    Update (in response to the comments below):

    • I have been able to build the same image (and others) on this instance before
    • The issue occurred irrespective of the base image used
    • The issue was specific to this one instance which is running CentOS
    • The user I was logged in as was different from the user the daemon was running as (root)

    Assuming the issue may have been because of the user mismatch, I changed to root and tried the command. It went through without issues. Then, I changed back to the original user, removed the image and tried again: it went through again! The original issue is not reproducible anymore.

  • Docker automated build Error: Build failed: Dockerfile not found at ./Dockerfile
  • Is it reasonable to containerize development environment with Docker?
  • Cassandra fails to initialize with error “Cannot add table 'role_members' to non existing keyspace 'system_auth'”
  • ENV[“VARIABLE”].encoding return #<Encoding:ASCII-8BIT> on production when being assigned a unicode string
  • Docker container with Node and Express on Mac, not showing in browser?
  • Something missing in configuration for publishing from VS to Docker on Ubuntu?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.