To Download all images from fedora repository
# docker pull fedora
To search all of the publicly available CentOS images on Docker Hub
# docker search centos
To search all of the publicly available CentOS-6.5 images
# docker search centos-6.5
To Download centos-6.5 from the public repo "svk/centos"
# docker pull svk/centos:centos-6.5
To Rund downloaded centos-6.5
# docker run -i -t --name CentOS-6.5 svk/centos-6.5-x86_64 /bin/bash
Run a ubuntu 12.04 container
# docker run -t -i --name UB-12-Dock ubuntu:12.04 /bin/bash
Run a CentOS 6.6 container
# docker run -i -t --name CentOS-6 centos:6 /bin/bash
To list localy available images
# docker images
List all containers
# docker ps -a
List Only Running containers
# docker ps
To Stop a Running container
# docker stop containerID/Name
To Remove a stopped container
# docker rm containerID/Name
Remove all Docker Containers
# docker rm $(docker ps -aq)
Finding out more about a container
# docker inspect containerID/Name
To access a Running Container
# docker attach container-id/Name
# docker pull fedora
To search all of the publicly available CentOS images on Docker Hub
# docker search centos
To search all of the publicly available CentOS-6.5 images
# docker search centos-6.5
To Download centos-6.5 from the public repo "svk/centos"
# docker pull svk/centos:centos-6.5
To Rund downloaded centos-6.5
# docker run -i -t --name CentOS-6.5 svk/centos-6.5-x86_64 /bin/bash
Run a ubuntu 12.04 container
# docker run -t -i --name UB-12-Dock ubuntu:12.04 /bin/bash
Run a CentOS 6.6 container
# docker run -i -t --name CentOS-6 centos:6 /bin/bash
To list localy available images
# docker images
List all containers
# docker ps -a
List Only Running containers
# docker ps
To Stop a Running container
# docker stop containerID/Name
To Remove a stopped container
# docker rm containerID/Name
Remove all Docker Containers
# docker rm $(docker ps -aq)
Finding out more about a container
# docker inspect containerID/Name
To access a Running Container
# docker attach container-id/Name