#!/bin/bash
set -eux
set -o pipefail

if [ -f /.dockerenv ]; then
    echo "This must be run on a docker host";
    exit 0;
fi

echo "Building and starting container";

cd "$(dirname "$0")";

PWD=${PWD};

docker build . -t lab;
docker run \
    --user heap \
    -it -v $PWD:/home/heap/ \
    lab

#!/bin/bash
set -eux
set -o pipefail

if [ -f /.dockerenv ]; then
    echo "This must be run on a docker host";
    exit 0;
fi

echo "Building and starting container";

cd "$(dirname "$0")";

PWD=${PWD};

docker build . -t lab;
docker run --user heap -it -v $PWD:/home/heap/ lab;

Remove strange error when exiting container
Remove strange error when exiting container
