An unofficial container for Volta: The Hassle-Free JavaScript Tool Manager
michaelr0/volta-docker:latest - Ubuntu image, currently built from compiling volta-cli/volta
michaelr0/volta-docker:alpine - Alpine image, currently built from compiling volta-cli/volta
michaelr0/volta-docker:nightly-ubuntu - Ubuntu image, compiled from volta-cli/volta
michaelr0/volta-docker:nightly-alpine - Alpine image, compiled from volta-cli/volta
This image comes preinstalled with Node 20 LTS, but commands such as npm
, yarn
should automatically download and use any defined version from your package.json
$ docker run --rm --interactive --tty \
--volume $PWD:/app \
michaelr0/volta-docker <command>
By default, Volta runs as root inside the container. This can lead to permission issues on your host filesystem. You can work around this by running the container with a different user:
$ docker run --rm --interactive --tty \
--user $(id -u):$(id -g) \
--volume $PWD:/app \
michaelr0/volta-docker <command>
See: https://docs.docker.com/engine/reference/run/#user for details.
Note: Docker for Mac behaves differently and this tip might not apply to Docker for Mac users.