Skip to main content

Docker Cheat Sheet

DOCKER HUB

Login

docker login [OPTIONS] [SERVER]
#Options:
# -p, --password string Password
# --password-stdin Take the password from stdin
# -u, --username string Username

Pull

docker pull image

Search

docker search image

CONTAINERS

Check

docker ps
docker stats
docker images

Run the Image as a container

docker run -it image /bin/bash
# interactive; tty

Reference

  1. Docker cheat sheet
  2. Docker.docs