What does it do?#
Provides aliases for common Linux command-line utilities — linters, network tools, JSON/text processing and file sync. Like the Images and AI Tools aliases, this file is not sourced automatically — you need to add it explicitly.
Enabling it#
Bash / zsh#
source ~/.docker-devtools/docker-devtools.sh
source ~/.docker-devtools/linux/docker-linux-devtools.shPowerShell#
. "$HOME/.docker-devtools/docker-devtools.ps1"
. "$HOME/.docker-devtools/linux/docker-linux-devtools.ps1"Source the root script first —
docker_alias/Invoke-DockerAliasmust already be defined before this file loads.
Commands#
Commands you can run to use this.
Aliases#
| Alias | Tool | Image |
|---|---|---|
yamllint-docker | yamllint — YAML linter | cytopia/yamllint:latest |
shellcheck-docker | ShellCheck — shell script linter (official image) | koalaman/shellcheck:stable |
shfmt-docker | shfmt (bashfmt) — shell script formatter (official image) | mvdan/shfmt:latest |
nmap-docker | Nmap — network discovery and security auditing | instrumentisto/nmap:latest |
jq-docker | jq — command-line JSON processor (official image) | ghcr.io/jqlang/jq:latest |
rg-docker | ripgrep — fast recursive grep alternative | alpine:latest (installs ripgrep at runtime) |
tmux-docker | tmux — terminal multiplexer | alpine:latest (installs tmux at runtime) |
fd-docker | fd — fast, user-friendly alternative to find | alpine:latest (installs fd at runtime) |
rsync-docker | rsync — fast incremental file transfer/sync | instrumentisto/rsync-ssh:latest |
rclone-docker | rclone — sync/manage files across cloud storage providers (official image) | rclone/rclone:latest |
watchdog-docker | watchdog’s watchmedo — run commands on filesystem changes | python:3.13-slim (installs watchdog at runtime) |
hadolint-docker | hadolint — Dockerfile linter (official image) | hadolint/hadolint:latest |
markdownlint-docker | markdownlint-cli — Markdown linter (community image) | igorshubovych/markdownlint-cli:latest |
Note:
rg-docker,tmux-docker,fd-docker, andwatchdog-dockerhave no official pre-built image, so they install the package into a fresh container on every run (a few extra seconds per invocation).
Usage#
# Lint a YAML file
yamllint-docker config.yml
# Lint and format a shell script
shellcheck-docker script.sh
shfmt-docker -l -w script.sh
# Scan a host
nmap-docker -A -T4 scanme.nmap.org
# Query JSON
jq-docker '.' data.json
# Search recursively for a pattern
rg-docker "TODO"
# Sync files
rsync-docker -av src/ dest/
rclone-docker ls remote:bucketThe Sources#
GitHub: https://github.com/willhallonline/docker-devtools-aliases