---
title: "Discussion on \"Docker 101: Run a Containerized CLI Tool and Send Data to STDIN\" | Hashnode"
description: "Discussion on \"Docker 101: Run a Containerized CLI Tool and Send Data to STDIN\". One of the most underrated Docker tricks is using containers as temporary CLI tools — without installing anything locally.\nHere’s a simple but powerful pattern:\ncat ~/avatar.png | \\\n  docker run -i redis \\\n    redis-cli -h 172.16.0.3 -x set avatar:us..."
url: "https://hashnode.com/posts/docker-101-run-a-containerized-cli-tool-and-send-data-to-stdin/69901996ea22d25c33bd250a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Docker 101: Run a Containerized CLI Tool and Send Data to STDIN](https://rakeshkadam.hashnode.dev/docker-101-run-a-containerized-cli-tool-and-send-data-to-stdin?utm_source=hashnode&utm_medium=feed)

One of the most underrated Docker tricks is using containers as temporary CLI tools — without installing anything locally. Here’s a simple but powerful pattern: cat ~/avatar.png | \\ docker run -i redis \\ redis-cli -h 172.16.0.3 -x set avatar:us...

Feb 14 · 3 min read · rakeshkadam.hashnode.dev  
Read the article

## Written by

[Rakesh Kadam](https://hashnode.com/@rakeshkadam)

@rakeshkadam · Pune, India

  
[View profile](https://hashnode.com/@rakeshkadam)

DevSecOps Lead

I wear many hats and crave a challenge. Experience both in tech and sales. My geeky interests lie mostly in Linux, security, DevOps, infrastructure, and automation.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
