Viewing Docker image contents with a quick run

Snippet

Or, maybe you do want to run a docker instance quickly to see what is in it, unlike otherwise.

# find the docker images you have locally
$ docker images
REPOSITORY                   TAG                          IMAGE ID       CREATED         SIZE
khodsden/coming-soon         3da8af1                      35bdf1f52fcd   9 minutes ago   142MB
khodsden/coming-soon         43488d2                      314cd6408556   9 days ago      142MB
khodsden/coming-soon         94624cc                      3b701e48dd2b   2 weeks ago     142MB
 
# lightly run the container 
docker run --rm -it image-name:tag bash

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.