Docker-Image to run unix tools like vim, sed, curl, wget a.s.o.
On macOS put an alias in your ~/.bash_profile or ~/.bashrc.
function vim2 {
DIR=$(dirname "$1")
FILE=$(basename "$1")
docker run --rm -it -v $DIR:/app/ codeclou/docker-unix-tools:latest vim /app/$FILE
}
export -f vim2
Then use vim2 as you normally would, but it will be run from docker.
Or if you want to use curl do
docker run --rm -it codeclou/docker-unix-tools:latest curl -I https://codeclou.io
Or play around with bash.
docker run --rm -it -v $(pwd):/app/ codeclou/docker-unix-tools:latest bash
Windows:
Content type
Image
Digest
Size
11.6 MB
Last updated
over 9 years ago
docker pull codeclou/docker-unix-tools