Download a docker image from remote repository
docker pull image_name
Check downloaded docker images
docker images
Remove docker image
docker rmi image_name
Run docker container
docker run -d image_name sleep timeout
-d => detached mode
sleep => make container run for timeout period
Show running docker containers
docker ps -a
-a [optional] => show all running and stopped containers
Stop running container
docker kill container_id/name
Remove initiated container
docker rm container_id
Thank you for reading this article, I really appreciate it. If you have any question feel free to leave a comment.