Review the instructions for installation docker here and configure Docker to use a proxy server as here.
Skip this step if you don't have GPU.
Review the instructions for installation docker here.
In the project folder run in terminal:
sudo docker image build --network=host <PATH_TO_DIR_WITH_DOCKERFILE>
Use --network
to duplicate the network settings of your localhost into context build.
Run in terminal:
sudo docker run \
-it \
--name=<CONTAINER_NAME> \
--runtime=nvidia \
--network=host \
--shm-size=1g \
--ulimit memlock=-1 \
--mount type=bind,source=<PATH_TO_DATASETS_ON_HOST>,target=<PATH_TO_DATSETS_IN_CONTAINER> \
--mount type=bind,source=<PATH_TO_NNCF_HOME_ON_HOST>,target=/home/nncf \
<IMAGE_ID>
You should not use --runtime=nvidia
if you want to use --cpu-only
mode.
Use --shm-size
to increase the size of the shared memory directory.
Now you have a working container and you can run examples.