dockerfile: not able to run command

Docker version 1.0.1, build 990021a

I am trying to run following command in via dockerfile and seeing error

  • Current Base Device UUID: does not match with stored UUID:
  • How can I create a Jenkins Docker image that uses provided ssh keys for jenkins user?
  • Executing shell command produces nothing
  • Building a Docker images fails when a User tries to execute javac
  • what conditions are needed to install Docker DTR on a node, how do I test for them?
  • docker container does not mount content of mapped volume on start
  • FROM centos:6
    MAINTAINER averma <>
    RUN yum -y install wget svn
    WORKDIR /usr/local/src
    RUN rpm --import
    RUN wget
    RUN rpm -Uhv rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
    RUN yum -y install java-1.6.0-openjdk.x86_64
    RUN mkdir -p /u001/tomcat-apps/
    ENV PATH /u001/tomcat-apps
    RUN chown root:root /etc/
    RUN chmod 700 /etc/
    CMD ["/etc/", "-d"]
    EXPOSE 8280


    Step 13 : RUN chown root:root /etc/
         ---> Running in a48ef57822bd
        /bin/sh: chown: command not found

    I used the same file and it was working fine. my base container is official centos6.6

  • Add a solo pseudo network card in docker
  • Docker-machine resource limit
  • File copied by Docker seen as a directory
  • Installing OpenShift as Docker image behind nginx
  • networking options for a docker image in minikube
  • How to connect to a Redis container using Docker Compose?
  • One Solution collect form web for “dockerfile: not able to run command”

    You’ve broken the path, by setting:

    ENV PATH /u001/tomcat-apps

    So the container can’t find any binaries, including chown. I guess you meant:

    ENV PATH $PATH:/u001/tomcat-apps
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.