What does it do?#

Runs common JavaScript and CSS tooling inside Docker containers — no local Node.js install required.

Commands#

Commands you can run to use this.

Aliases#

AliasToolImage
stylelint-dockerStylelint CSS linter (community image)solutiondrive/stylelint:latest
eslint-dockerESLint (community image)pipelinecomponents/eslint:latest
node-dockerNode.js REPL / scriptsnode:22-alpine
npm-dockernpmnode:22-alpine
yarn-dockerYarnnode:22-alpine
pnpm-dockerpnpmnode:22-alpine
node-bash-dockerInteractive bash in Node containernode:22-alpine

Usage#

# Lint a CSS file
stylelint-docker bad.css

# Lint all JS files in the current directory
eslint-docker .

# Run a Node.js script
node-docker script.js

# Install npm dependencies
npm-docker install
yarn-docker install
pnpm-docker install

# Drop into an interactive shell in the Node container
node-bash-docker

Note: eslint-docker and stylelint-docker both invoke their image’s lint sub-command under the hood (e.g. docker run ... pipelinecomponents/eslint:latest lint <your args>), so any arguments you pass are forwarded to that sub-command.

PowerShell: js/docker-js-devtools.ps1 now has full parity with the Bash version — same aliases (eslint-docker, stylelint-docker, prettier-docker, biome-docker, tsc-docker, node-docker, node-bash-docker, npm-docker, yarn-docker, pnpm-docker), same images. See the PowerShell page for the full platform-parity breakdown.

The Sources#

GitHub: https://github.com/willhallonline/docker-devtools-aliases

Find out more#