Skip to content

kamalgirdher/Docker_StepbyStep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Install Docker

dhclient
yum install docker

Start Docker Service

service docker start

List all images

docker images

Run a container

docker run hello-world

This will pull the image from dockerhub and then run.

Pull image from dockerhub and run

docker pull busybox
docker run busybox

Run docker container in interactive mode

docker run -it busybox sh

Display running docker containers

docker ps

Display all docker containers

docker ps -a

Display process ids of all docker containters

docker ps -a -q 

Display process ids of all docker containters with Filter

docker ps -a -q -f status=exited

Remove a exited container```

docker ps hello-world

Remove a running container

docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published