- RUN
Docker: Ubuntu htop
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.
examples/ubuntu-htop/Dockerfile
FROM ubuntu:23.04 RUN apt-get update RUN apt-get install -y htop RUN echo "Hello World" > welcome.txt
docker build -t mydocker . docker run --rm -it mydocker