Notes
  • Overview
  • Go
    • Basics
    • How To?
    • Tools & Libraries
    • Tutorials
    • Go Modules
    • Design Patterns
    • Guidelines
      • Code Review and Comments
    • Conversion
      • map[string]interface{} to JSON
      • map[string]interface{} to struct
    • Tips & Tricks
  • Docker
    • Blog Posts
    • Commands
  • Kubernetes
    • Courses
    • Concepts
    • Networking
      • Ingress Controller
    • KIND
    • Custom Resources
    • Tips & Tricks
      • Commands
        • Log
        • List
      • Container
        • Inject Executable Script
      • RBAC
        • Cross namespaced access
      • Patching Object
        • Restrict Key
      • Copy Object
  • Git
    • Rebase
  • System Design
    • Pub-Sub
      • Ovserver vs PubSub
  • Distributed System
    • Untitled
  • Linux
    • Bash
      • Basics
      • How To?
      • Pipe
      • Tips & Tricks
  • Security
    • Untitled
  • Database
    • PostgreSQL
      • Tricks & Tips
    • MySQL
      • Tips & Tricks
  • MISC
    • Development Patterns
    • Useful Github Apps/Actions
    • Parameters vs Arguments
    • Open API
  • Terminal
  • VS Code
Powered by GitBook
On this page

Was this helpful?

  1. Docker

Commands

Docker command cheat sheet.

Image

  1. List all docker images

$ docker images

2. List only those images who has none substring in information

$ docker images | grep none

3. Print ID (3rd field) of the docker images who has none substring in their info.

$ docker images | grep none | awk '{print $3}'

4. Remove the images who has none substring in their information.

$ docker rmi -f (docker images | grep none | awk '{print $3}')

5. Free disk taken by docker images, volume etc.

docker system prune --all
PreviousBlog PostsNextCourses

Last updated 4 years ago

Was this helpful?