Docker — open source popular software for development and deployment. Its advantage lies in the fact that it provides ability of isolation applications, which makes it easy to develop, test and deploy for different environments. Commands of this software provide convenient ability for manage containers and all which everything connected with them (images, networks, volumes, and other). Understanding and using these commands is an important skill for developers and system administrators.
Management
Create from an image and then run
docker runStart of previously stopped
dockerstartShut down container
docker stoprestart
docker restartRemoval
docker rmOutput started
docker pslog output
docker logsCreating a new container without running it. The command creates a new container based on the image specified in the command and assigns it a unique ID
docker createDisplaying a list of already started
docker lsDisplaying detailed info
docker inspectStop
docker killManage images
Download from storage
docker pullBuilding from a so-called Dockerfile
docker buildSubmitting to the repository
docker pushDeleting from local storage
docker rmiCreation history display
docker historyDisplaying information about local images
docker imagesNetwork Management
New network
docker network createDisplaying information about networks
docker network lsNetwork connection
docker network connectDisconnecting from networks
docker network disconnectWorking with volumes
Creating a new
docker volume createList output
docker volume lsRemoval
docker volume rmInformation output
docker volume inspectResource management
Displaying container resource usage
docker statsSuspension of work
docker pauseResumption of work
docker unpauseResource Upgrade
docker updateMonitoring and Debugging
Launching command within container
docker execDisplaying information about images, containers, and networks
docker inspectShowing processes within a container
docker topConnecting directly to started container
docker attachDocker Swarm Support
Running the Docker Swarm initialization procedure on the current node
docker swarm initJoining a node to Swarm
docker swarm joinCreate a service
docker service createList of running services
docker service lsThese commands represent only a portion of the functions available within Docker. More detailed information on each command can be found in the official Docker documentation. Our aim is for this article to enhance your comprehension of Docker commands and assist you in their practical application.