Manage Docker containers and images.

# To list currently running docker containers:
docker container ls

# To list all docker containers (running and stopped):
docker container ls -a

# To start a container from an image, with a custom name:
docker container run --name=<container_name> <image>

# To start or stop an existing container:
docker container <start|stop> <container_name>

# To pull an image from a docker registry:
docker pull <image>

# To start a container from an image and get a shell inside of it:
docker container run -it <image> bash

# To run a command inside of an already running container:
docker container exec <container_name> <command>

# To remove a stopped container:
docker container rm <container_name>

# To fetch and follow the logs of a container:
docker container logs -f <container_name>

# ---

# To prune all Docker unused objects:
docker system prune --volumes --force