Docker uses the kernel of the host system and the host operating system, applications and their dependencies run in a container isolated from the rest. The container image contains the application to be run plus all necessary libraries.
A docker file has to be create to know what has to go into the docker image.
For gentoo https://wiki.gentoo.org/wiki/Docker emerge app-containers/docker and docker-cli for the docker command line command.
read the elogs to see if kernel options are missing, or cat /var/log/portage/elog/app-containers\:docker-28.0.4\:20251010-123137.log | grep CONFIG or
run /usr/share/docker/contrib/check-config.sh to see if the kernel contains everything docker requires
for systemd systemctl enable docker.service or for OpenRC rc-update add docker default
usermod -aG docker <username>
docker run hello-world
docker ps
docker inspect hello-world
docker --help
https://hub.docker.com is the repository, when no local container is found then it will be used
docker compose uses YAML configuration files to handle multiple containers together
partainer is a gui for docker and docker compose
An alternative to docker is podman