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:
docker container start <container>

# To stop a container:
docker container stop <container>

# 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> <command>

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

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

# ---

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