List container images
docker image lsPull a container image
docker image pull centos:latestRun a container
docker container run --detach --name centos centos:latestRun a container and map a local port to the container port
docker container run --detach --name httpd --publish 8080:8080 httpd:latestRun a container interactively
docker container run --tty --interactive --name centos-bash centos bashRun an additional command in a container interactively
docker container exec --tty --interactive --name centos-bash centos bashList container logs
docker container logs httpdList containers
docker container psRemove container
docker container rm --force httpd centos centos-bashRemove all containers
docker container rm --force $(docker container ls --all --quiet)Remove all images
docker image rm --force $(docker image ls --all --quiet)