Thursday, March 18, 2021

Docker Basic

 Summaries the docker basic command below:

1) Checking the version of docker

$ docker version


2) Listing the available images in your docker
$ docker images

3) Listing the current running process 
$ docker ps



4) Listing the all process included exited process in history
$ docker ps -a



5) Checking the process detail 
$ docker inspect your_process


6) Before remove the process, must stop the process 1st
$ docker stop your_process_id OR your process_name


7) After the process stopped , you can remove all the process
$ docker rm your_process_id OR your_process_name

8) Remove the unused images
$ docker rmi your_images_name

9) Pull the images from docker hub
$ docker pull docker_public_id_name

10) Running a container with tag 
$ docker run --name your_name_tag your_images_name






No comments:

Post a Comment