Build Dockerfile and create image


I have build a Dockerfile to create image but i am getting an error “Step 1/2 : FROM ubuntu
—> 2dc39ba059dc
Step 2/2 : RUN eco " welcome” > /tmp/testfile
—> Running in 7d54d3f4f9e5
/bin/sh: 1: eco: not found
The command ‘/bin/sh -c eco " welcome" > /tmp/testfile’ returned a non-zero code: 127

Commands that i have given
#vi Dockerfile

docker build -t test .

In Dockerfile i have inserted 2 commands:-
FROM ubuntu
RUN eco “Welcome” > /tmp/testfile .

Can somebody suggest me as i am new into docker.


Replace ecowith echo and it will work.

1 Like