• Stars
    star
    534
  • Rank 83,095 (Top 2 %)
  • Language
    Shell
  • License
    Other
  • Created about 5 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🐳 Container registry which provides you all the commands you need in a lightweight Alpine image. DevOps and SysOps best friend. https://command-not-found.com

Commando

Version

Commando generates Docker images on-demand with all the commands you need and simply point them by name in the docker run command. Commando is SysOps and DevOps best friend.

Features

When running a Docker image you will enter the Bash shell by default and have the requested commands available.

Commando is deployed under cmd.cat and publicly available, you can freely use it but do not depend on it's stability in your projects as it is hosted on my private server with limited resources.

The image is based on Alpine and the builder does its best to reuse the existing layers when using multiple commands. This way both cmd.cat/envsubst/curl and cmd.cat/curl/envsubst are the same images, also cmd.cat/envsubst/tcpdump/curl adds only one extra layer.

Source: Linux PerfTools

# One command.
docker run -it cmd.cat/strace
docker run -it cmd.cat/ab

# Two...
docker run -it cmd.cat/curl/wget
docker run -it cmd.cat/htop/iostat

# ... or a lot of commands, how many you need.
docker run -it cmd.cat/ping/nmap/whois
docker run -it cmd.cat/ngrep/tcpdump/ip/ifconfig/netstat

Use the generated image with host/container pid/network modes to debug and monitor your containers or the host system.

docker run -d --name nginx nginx

# Enter the shell with all network tools available
docker run -it --net container:nginx cmd.cat/curl/ab/ngrep
# Monitor all network interfaces of the nginx container
docker run -it --net container:nginx cmd.cat/ngrep ngrep -d any
docker run -d --name redis redis

# Monitor the processes running inside the redis container
docker run -it --pid container:redis cmd.cat/htop htop
# Monitor network and processes on the host system
docker run -it --net host --pid host cmd.cat/htop/ngrep

Running

Run the project locally or deploy it internally inside your company with a single command that will pull all the required images and build the registry proxy:

git clone https://github.com/lukaszlach/commando.git
cd commando
docker-compose up -d

Run any command built locally the same way:

docker run -it localhost:5050/tcpdump
docker run -it localhost:5050/strace/php

The first run needs to build the base image so it takes longer than all further calls.

License

MIT License

Copyright (c) 2019 Łukasz Lach [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Google Nixery ❀️

More Repositories

1

docker-tc

🐳 🚦 Docker Traffic Control - network rate limiting, emulating delays, losses, duplicates, corrupts and reorders of network packets using only container labels or a command-line interface.
Shell
661
star
2

clip

🐳 Docker Client Plugins Manager - build new plugins, publish them on Docker Hub or just try some plugins from the catalog and install them locally
Shell
131
star
3

kali-desktop

🐳 Kali Linux desktop running in Docker on any operating system, in your web browser or a VNC client, with Kali top10 tools pre-installed.
Makefile
126
star
4

satis-server

🐳 Private, self-hosted Composer/Satis repository with unlimited private and open-source packages and support for Git, Mercurial, and Subversion. HTTP API, HTTPs support, webhook handler, scheduled builds, Slack and HipChat integration.
Shell
113
star
5

orca

🐳 Orca | Docker workshop
Go
32
star
6

consul-conf

🐳 Consul.conf provides responsive web interface for managing configuration of your services in Consul key-value storage through beautiful and customizable dashboards, distributed as a lightweight Docker image.
PHP
32
star
7

code-container

🐳 Microsoft Visual Studio Code running in a Docker container, accessible through a web browser and aimed for Docker development.
Shell
27
star
8

magento-docker

🐳 Bootstrap Magento 1.9 / 2.1 installation in Docker with fully integrated Kibana, Grafana, Portainer, cAdvisor, Prometheus, MailCatcher and more
VCL
22
star
9

docker-file

🐳 Parse and validate Dockerfile, docker-compose.yml, .env and .dockerignore files and return their contents in JSON format for further analysis.
Go
19
star
10

docker-movie

🐳 Docker Movie converts a movie file (avi, mp4, mpg, mkv, etc.) into a "playable" Docker image
Shell
6
star
11

gitlab-docker-playground

🐳 Playground for running GitLab and GitLab Runner in Docker
Makefile
3
star
12

libvmod-shell

🐚 Varnish Module (VMOD) for executing long-running shell commands with support of two-way communication and command interface based on one-line request and one-line response, allows you to use any programming language or sh scripting and expose it's features to VCL.
C
3
star
13

varnish-docker-playground

Playground for learning basics of Varnish 6, all set up in Docker with upstreams on PHP 7.2.
VCL
2
star
14

selenium-docker-playground

Selenium Hub and Nodes (Chrome, Firefox) in Docker + Node.js / Jasmine test running in Docker on this stack
JavaScript
2
star
15

lukaszlach

1
star
16

orca-gitlab

🐳 Orca | Docker workshop
Makefile
1
star
17

uw-docker

PHP
1
star