0 evaluări0% au considerat acest document util (0 voturi)
41 vizualizări4 pagini
This document lists the most frequently used Docker commands and provides a brief description of each command's purpose. Some key commands include docker build to build images from Dockerfiles, docker pull to pull images from repositories, docker run to create and run containers, docker ps to view running containers, and docker rm to remove containers.
Descriere originală:
Titlu original
Top Docker Commands You Should Know - QA Automation.pdf
This document lists the most frequently used Docker commands and provides a brief description of each command's purpose. Some key commands include docker build to build images from Dockerfiles, docker pull to pull images from repositories, docker run to create and run containers, docker ps to view running containers, and docker rm to remove containers.
This document lists the most frequently used Docker commands and provides a brief description of each command's purpose. Some key commands include docker build to build images from Dockerfiles, docker pull to pull images from repositories, docker run to create and run containers, docker ps to view running containers, and docker rm to remove containers.
In my previous article, we already have learnedwhat is docker its architecture and what is
thedifference between Docker and Kubernetes. In this article, we will discuss some of the frequently used docker commands along with its purpose.
Below is the list of most frequently used docker commands.
Docker Command Purpose
docker --version This command will give the installed docker version. docker build <path to This will build an image from a docker file> specified docker file. docker pull <image This will pull images from name> the docker repository. docker create This will create a new docker container. docker run -it -d httpd This will create a docker container in which the Apache HTTP server will run. docker ps This command will list the running containers. docker ps-a This will display all the docker containers running/exited/stopped with container details. docker exec -it This will access the docker <container id> bash container and run commands inside the container. docker rm <container This command will remove the id> docker container with container id mentioned in the command. docker stop <container This command will stop the id> running container. docker rm <container This command will remove the id> container for the mentioned container id. docker rmi <docker This command will remove image id> docker image for the provided docker image id. docker kill <container This command will kill running id> container. docker restart This command will restart the <container id> docker container with the provided container id. docker start <container This command will start the id> docker container for the provided container id. docker stop <container This command will stop the id> docker container for the provided container id. docker login This command will login into docker hub. docker logout This command will logout from docker hub. docker rename <old This command will rename the container id> <new docker container from old to container id> new container id. docker pause This command will pause the <container id> processes for the provided container id. docker network ls This command will list all the network in the coder cluster. docker info This command will display the system-wide information. docker history <image This command will list the name> history of docker image with the provided image id. docker logs <container This command will show the id> logs of the docker container with the provided container id. docker search <image This command will search the name> docker hub for the mentioned image name. docker engine This command will manage the docker engine.
Modern Web Applications with Next.JS: Learn Advanced Techniques to Build and Deploy Modern, Scalable and Production Ready React Applications with Next.JS