docker run --rm -it -v ${PWD}:/scripts centos:7 ./scripts/buzz.sh OR docker build -t buzz:1.0 . docker run -it buzz:1.0 Also fizzbuzz in oracle docker-compose up -d docker exec -t oracle-xe sh /scripts/fizzbuzz.sh