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.


Docker Version

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

docker version

Docker Info

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

docker info

Docker Components

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

Docker Login

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 >>

Marcin Narloch

Marcin Narloch

Creative and out-of-the-box thinker with strong interests and knowledge in technology and innovation.
Docker Building Blocks Previous post Docker Images
Docker Building Blocks Next post Introduction

Leave a Reply

Your email address will not be published. Required fields are marked *