List of 20 docker commands and its use cases with example?Docker versionWe usually start by finding the installed version of docker that we are working on. Docker searchThe “docker search” command searches for specific images through the Docker hub. This command returns the specific information, including image name, description, automated, official stars, etc. Docker pullAs the name suggests, this command pulls a specific image from the Docker Hub. All you have to do is use the command ‘docker pull’ along
Read moreAuthor: Sai Charan.T
What is the differenet between CMD vs Entrypoint?CMD commands are ignored by Daemon when there are parameters stated within the docker run command.ENTRYPOINT instructions are not ignored but instead are appended as command line parameters by treating those as arguments of the command.
Read moreList of dockerfile instructions and its Brief Summary?FROM: Create a basic image like httpd.RUN: It is to build the containerMAINTAINER: Creates the images.ENV: Environment for image.COPY: Copies the file to images.
Read moreWhat is the differenet between docker exec and attach?Docker exec executes new command or create a new process in containerDocker attach conncects the standard input/output/error of main process inside the container.
Read moreWhat is the differenet between docker stop and kill?Docker stop command stop a running container by sending SIGTERM signal to the root (PID 1) in container.Docker kill command kills one or more containers.
Read moreWhat is the differenet between docker pause and unpause?Pause is to stop the process running inside containersUnpause is to resume the paused process inside containers
Read moreComponents of Docker and its Brief SummaryDocker client – Docker user to communicate with DockerDocker host – It Consists of dockerd(daemon),containers and imagesRegistry – It stores images where we can use docker pull to pull images from registry.
Read more