FROM ubuntu
RUN "apt-get update && apt-get install -y moreutils"
CMD ["/bin/bash","-i"]
I created the above file and named it Dockerfile
To build the image,
sudo docker build -t test .
Sending build context to Docker daemon 2.048kB
Step 1/4 : FROM ubuntu
---> 94e814e2efa8
Step 2/4 : RUN "apt-get update && apt-get install -y moreutils"
---> Running in d4938a166310
/bin/sh: 1: apt-get update && apt-get install -y moreutils: not found
The command '/bin/sh -c "apt-get update && apt-get install -y moreutils"' returned a non-zero code: 127
I don’t see a problem, do you??