1

I have a docker application, I want to append the word "Hellow" to the passwd file inside the docker container. I made this change to Dockerfile:

RUN echo "Hellow" >> /etc/passwd

But the word Hellow is not showing after I run cat /etc/passwd by using docker exec -u 0 -it my_php-apache_1 bash and then cat /etc/passwd command.

2
  • you have to build the docker image with the new instruction, i believe. Commented Jan 31, 2021 at 0:53
  • Thanks, I wasn't building it.
    – Rembo
    Commented Jan 31, 2021 at 1:33

0

You must log in to answer this question.

Browse other questions tagged .