Site Tools


gist-docker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
gist-docker [February 06, 2026 at 01:11] yanevskivgist-docker [May 14, 2026 at 11:38] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +# Docker (Reference)
 +This page includes a myriad docker commands for reference.
  
 +## Basic
 +### Containers
 +Run `ubuntu:latest` image (will do `docker pull` automatically if you don't have it)
 +```
 +docker run -it --rm ubuntu:latest
 +```
 +
 +### Images
 +Pull `ubuntu:latest` image
 +```
 +docker pull ubuntu:latest
 +```
 +
 +Show currently installed images
 +```
 +docker images
 +```
 +
 +Remove `ubuntu:latest` image (you can pull it again)
 +```
 +docker rmi ubuntu:latest
 +```
 +
 +Rename a docker image from `ubuntu:latest` to `myimage:latest` (retag, then remove original image)
 +```
 +docker tag ubuntu:latest myimage:latest
 +docker rmi ubuntu:latest
 +```