Site Tools


gist-docker

Table of Contents

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
gist-docker.txt ยท Last modified: (external edit)