Docker: Ubuntu htop
- RUN
Previously we created a Docker image manually after we have installed htop and created a file manually in a Docker container.
Let’s do the same now using Dockerfile.
FROM ubuntu:25.10
RUN apt update
RUN apt install -y htop
RUN echo "Hello World" > welcome.txt
$ docker build -t mydocker .
$ docker run --rm -it mydocker