Docker – 04- Some Docker Commands

large_v-trans

Some Docker Commands

docker ps -q  > running containers

docker ps -a > all containers

docker ps -aq > all containers id

docker rm <container_id> remove the docker container

docker rmi <image_id> remove docker image

docker rmi  -f <image_id> remove docker image force

docker kill <conainer_id> kill the container

docker stop <container_id> stop the process

docker tag <image_id> myimage > give the name of image

docker ps -l > latest created container

docker images > list of images

You can hit the docker you will see all of command  and if you want to see detail the command docker images -help  

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s