0

Docker Common Commands: 101 Part 2

The comprehensive Docker command line reference is located here. However we will cover some basic commands. Image Build an image docker build -rm=true . Install an image docker pull ${IMAGE} List of installed images docker images docker images –tree (tree view) docker images -no-trunc (detailed listing) Remove an image docker rmi ${IMAGE_ID} Remove all untagged images docker rmi $(docker images | grep “^” awk ‘{ print $3 }’) Remove all images docker rm $(docker ps -aq) Container Run a container docker run (many other options on this) List containers docker ps docker ps -a (list all containers) Stop a container… Continue Reading

0

Docker on CentOS/RHEL7 101 Part 1

My journey with Docker. Installing Docker on CentOS/RHEL7 $ sudo yum install docker $ sudo systemctl start docker $ sudo systemctl enable docker NOTE: if you are using firewalld make sure that firewalld is started before Docker. Also if firewalld is restarted please make sure to restart Docker afterwards. Now that Docker is installed lets pull a image and play with it a bit. $ sudo docker pull centos # pulls the latest centos7 container Trying to pull repository docker.io/centos … fd44297e2ddb: Download complete 6941bfcbbfca: Download complete 41459f052977: Download complete Status: Image is up to date for docker.io/centos:latest $ sudo… Continue Reading