First Downloading images
docker pull amazonlinux
Docker to provide a JSON representation of all the metadata associated with the amazonlinux image.
docker image inspect amazonlinux
export the filesystem of a Docker container created from the amazonlinux image to a TAR archive named amazonlinux.tar.
docker export $(docker create amazonlinux) > amazonlinux.tar
Interacting with Amazon linux
docker run -it amazonlinux /bin/bash
printf "\033c"