In this post we’ll learn some of the most useful and important Docker System commands that you should know before diving deeper into docker cli.
The version command provides a snapshot of your local Docker environment. You will find here when it’s been built, build number, OS architecture for both your Docker Client and Server.
More details: docker version cli
For a much more detailed Docker system output, use the info command. This one will print out a high level state of your Docker system for both Client and Server. You will find out if you have any containers running, images, drivers, plugins, cpu & memory allocations.
More details: docker info cli
For quite a neat and informative table listing Images, Containers, Local Volumes, and Build Cache details, such as total numbers and size on disk, run the system df command.
More details: docker system df cli
docker system df
Sometimes you might need to login to your private container registry. For example you might need to be authorised to pull or push images into the registry. This can be achieved with the login command.
More details: docker login cli
Login to Docker Hub
docker login -u [USERNAME] -p [PASSWORD]
Login to another Private Registry
docker login [REGISTRY URL] -u [USERNAME] -p [PASSWORD]
<< Introduction | Docker System | Docker Images >>