Edit file (Mac ~/.bash_profile
) (Linux: ~/.bashrc
or ~/.zshrc
) and add:
your_command_name () {
tty=
tty -s && tty=--tty
docker run \
$tty \
--rm \
your_docker/image "$@"
Edit file (Mac ~/.bash_profile
) (Linux: ~/.bashrc
or ~/.zshrc
) and add:
your_command_name () {
tty=
tty -s && tty=--tty
docker run \
$tty \
--rm \
your_docker/image "$@"
#!/bin/bash
(docker build \
--tag cfn-lint:latest \
--quiet \
-<<EOF
FROM python:alpine
RUN pip install cfn-lint
WORKDIR /workdir
ENTRYPOINT ["cfn-lint"]