nagios/build.sh

11 lines
185 B
Bash
Executable File

#!/bin/bash
set -e
DOCKER_RUN_IMAGE=nagios
docker build -t "${DOCKER_RUN_IMAGE}" .
docker images
docker run -d --rm --name "${DOCKER_RUN_IMAGE}" -p 8080:80 -t "${DOCKER_RUN_IMAGE}"