Docker

"Docker is a set of platform-as-a-service (PaaS) products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels. All containers are run by a single operating-system kernel and are thus more lightweight than virtual machines." (Wikipedia)

To get an environment where you can manipulate individual containers: sudo apt install docker.io

To get container images from a remote registry: sudo docker pull docker.io/busybox:latest
 * 1) sudo docker pull [: ]/[ /] :

To see the images on your system: sudo docker images

To look at the metadata associated with an image: sudo docker inspect docker.io/busybox

To run a container image: sudo docker run --name=mybusybox -it docker.io/busybox

To run a command inside a container:

Note: after the container runs the command, the container exits and is deleted (--rm). sudo docker run --rm docker.io/busybox ls /bin

To run an interactive shell inside a container: sudo docker run --name=mybusybox -it docker.io/busybox /bin/sh

To list running, stopped and exited containers: sudo docker ps -a

To start an exited container again: sudo docker start -ai mybusybox

To investigate within a running container: sudo docker exec -it mybusybox /bin/sh

To stop a container: sudo docker stop mybusybox

To remove a container: sudo docker rm mybusybox

If you want to clear out all your containers: sudo docker rm $(sudo docker ps -a -q)

To remove images you no longer need: sudo docker rmi docker.io/busybox

If you want to clear out all your images: sudo docker rmi -f $(sudo docker images -a -q)

Images: Docker Hub