#!/usr/bin/env bash # vim: set filetype=sh # # Author: Cody Hiar # Date: 2019-01-15 # # Description: Dockerize the `date` command # # Set options: # e: Stop script if command fails # u: Stop script if unset variable is referenced # x: Debug, print commands as they are executed # o pipefail: If any command in a pipeline fails it all fails # set -exuo pipefail # Run a container docker run --rm -it ubuntu:18.04 /bin/bash -c date "$@"