Containers and AMIS

Cyber Cyber Cyber

Docker Commands for the Security Proffessional

General Administration

docker pull "name of container"

This will pull a specific container from docker hub. If this is not a public image, or a image assocaited with your specific account you will need to authenticate to your account as well.

docker ps -a

List all containers whehter they are running or stopped. This is important because without the “-a” the stopped images will not show.

docker rmi name:tag

Must use the name and the tag separated by the colon, or the full image id, which is a set of numbers and letters.

docker rm $(docker ps -a -q)

removes all stopped containers

sudo docker pull ubuntu

sudo docker exec -it ubunt /bin/bash



Last modified March 19, 2023: update (6766100)