Sign inSign up

codeclou/docker-unix-tools

By codeclou

•Updated over 9 years ago

docker unix tools

Image
0

375

codeclou/docker-unix-tools repository overview

⁠docker-unix-tools

Docker-Image to run unix tools like vim, sed, curl, wget a.s.o.


 

⁠Prerequisites

 

⁠Usage

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:


 

⁠License, Liability & Support

Tag summary

Content type

Image

Digest

Size

11.6 MB

Last updated

over 9 years ago

docker pull codeclou/docker-unix-tools