-
Pull the image from registry
pull arajczy/prettier
-
run the container
docker run -i --rm -v $(pwd):/data arajczy/prettier
-
Pull the image
pull arajczy/prettier
-
Add application script
mkdir -p /storage/bin echo '#!/bin/sh' > /storage/bin/prettier echo 'docker docker run -i --rm -v `pwd`:/data arajczy/prettier "$@"' >> /storage/bin/prettier echo 'export PATH=/storage/bin:$PATH' >> /storage/.profile
-
Source
.profilesource /storage/.profile -
Run the application
prettier --version