Get the Version of the Docker Container Image
- Log into the host machine with a user account that has sudo access.
- Run the Docker
ps
command to list the running Docker containers and format the output with the value of.Image
.
sudo docker ps --format '{{.Image}}'