List of docker commands

List of docker commands

  1. docker images – This command is used to list all the Docker images that are currently available on your system.

  2. docker rmi <image_name> – This command is used to remove the docker image.

  3. docker pull <image_name> – This command is used to download a Docker image from a registry.

  4. docker build -t <image_name> . – This command is used to build the docker image from the docker file.

  5. docker inspect <image_name> – This command returns low-level information on Docker objects.

  6. docker commit <container_name> <image_name> – This command creates a new container from the image.

  7. docker tag <image_name> <new_image_name> – This command creates a new image from an existing image.

  8. docker load <image_name> – This command is used to load an image from the tarfile.

  9. docker push <image_name> – This command is used to push an image to a registry.

  10. docker create <image_name> – This command is used to create a container from the image.

  11. docker start <image_name> – This command is used to start the container from the image.

  12. docker run --name <container_name> <image_name> – This command is used to start a new Docker container from an image.

  13. docker ps – This command is used to list all the running Docker containers.

  14. docker stop – This command is used to stop a running container.

  15. docker rm – This command is used to remove a Docker container.

  16. docker exec – This command is used to execute a command in a running container.

  17. docker-compose – This command is used to manage multi-container Docker applications.

  18. docker version – This command is used to show the docker version installed in your system

  19. docker logs <container_name> – This command is used to list the logs of the container.

  20. docker top <container_name> – This command is used to display the running process of the container.

  21. docker inspect <container_name> – This command is used to inspect the container.

  22. docker network ls – This command is used to list the network in the cluster.

  23. docker update – This command is used to update the configurations of one or more containers.

  24. docker login – This command is used to login to your registry

  25. docker restart – This command is used to restart the docker environment.