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

  • Docker bridge and Falcon gunicorn
  • Running Jenkins in Docker - Exits immediately
  • How to use docker-compose with theano image?
  • Implement on-demand docker container start-up
  • Error while executing mysql commands inside docker-compose
  • Where should I install SQL Management Server instances on my development machine?
  • 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

  • Docker + SSH + Git Clone Isssue
  • Will istio add support for docker swarm?
  • docker run command change to .yaml file
  • Does Dockerfile creates one single image or multiple image?
  • Docker container disappears without notice
  • CHMOD in dockerfile for python
  • 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.