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:

  • Docker container can not be found using curl
  • Reverse proxy to WordPress container
  • Why are there so many docker images with vulnerabilities? [closed]
  • Where is the docker swarm token stored?
  • Ubunto docker sh mysql script run
  • How microservices communicate each other when implemented using Docker?
  • 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.

  • Not able to run the default hello-world program in docker on Windows 7
  • Change volume configuration in docker-compose without losing the data
  • Should I include my webapp source in my docker image, or mount it when i run a container?
  • Running local project Docker Container
  • Docker: "Unknown instruction: VIRTUALENV'
  • Docker Swarm - Schedule container on each machine
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.