How to execute a command on a running docker container?
问题 I have a container running hadoop. I have another docker file which contains Map-Reduce job commands like creating input directory, processing a default example, displaying output. Base image for the second file is hadoop_image created from first docker file. EDIT Dockerfile - for hadoop #base image is ubuntu:precise #cdh installation #hadoop-0.20-conf-pseudo installation #CMD to start-all.sh start-all.sh #start all the services under /etc/init.d/hadoop-* hadoop base image created from this.