The following Docker commands are frequently used:
Command |
Description |
docker ps |
This command will be used to list all running containers with information such as ID, name, base image name, and port forwarding. |
docker build |
This command will be used to create a definition for the container. You can create new container definitions by using this command with the Docker build file. |
docker pull [image name] |
You can use this command to pull Docker images from the Docker repository, either the remote or local repository. |
docker run |
This command is responsible for starting a Docker container either from the local or remote container definition. |
docker push |
This command will be used to publish your application's Docker container to the Docker repository, such as DockerHub. |