fix: deprecated commands

This commit is contained in:
adripo 2022-12-04 02:34:36 +01:00
parent f136c0d151
commit 4826d63e7e

View File

@ -13,13 +13,13 @@ if ! docker-compose version | grep v2 ; then
fi
if ! docker run -it --gpus=all --rm nvidia/cuda:11.4.2-base-ubuntu20.04 nvidia-smi | egrep -e 'NVIDIA.*On' ; then
if ! docker run -it --gpus=all --rm nvidia/cuda:11.4.2-base-ubuntu20.04 nvidia-smi | grep -e 'NVIDIA.*On' ; then
echo "Docker could not find your NVIDIA gpu"
exit 1
fi
if ! docker-compose build ; then
if ! docker compose build ; then
echo "Error while building"
exit 1
fi
docker-compose up
docker compose up