To list all docker images in your system, use this command –
Here you can see that we have a
node image in our system. If you have more images, it will display all of them.
This command returns few information which we will understand here –
REPOSITORY– This shows the name of the image. In our case it is
TAG– It represents extra information which distinguishes various releases of image. So, it could be some name like
headlessetc. Or it could be the version like
v1.0.3, 1.2 etc. Also, it could be
latestwhich indicates that the image is of latest version.
IMAGE ID– This is a 12 digit unique alphanumeric id assigned by docker technology to the images.
CREATED– This shows the time when the image is created.
SIZE– It shows how much of the disk size it is taking. This includes all the libraries which are downloaded along with other dependencies.
- Introduction to Kubernetes
- Introduction to Docker, Containers, Images & Repository
- Install and Run Docker Images
- Docker Image – FROM, RUN, COPY, ENTRYPOINT, CMD, EXPOSE explained
- Why docker run or start command not running my container?
- How to list all docker images in system?
- How to list all docker containers?
- How to start/stop a docker container?
- Difference between docker run and docker start
- How to bind docker container port with host?
- How to get logs of docker container?
- How to live stream logs of docker container?
- Set custom name to a docker container
- Access docker container filesystem & terminal
- Getting docker details using docker inspect