docker build -t <image-name> .
docker run -d -p 8080:8080 <image-name>
docker tag build-server:latest shubham21155102/vercel:build-server
Pulling an Image
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
Bulk Delete Images
docker rmi -f $(docker images -a -q)
Command to delete all containers
docker image prune -f