Starting a Shell
To execute a shell inside a container, run the command
docker container run -it alpine sh.
We will use the Alpine image, which is a minimal Docker image based on Alpine Linux.
-it flag tells Docker that you are running an interactive program.
sh command indicates that you are executing a command inside the container.
cat /etc/os-release allows you to check that you are actually inside an Alpine Linux.
uname -r provides info about the kernel.
To stop the shell press
control + D.