We further provide an optional Docker file which can be used to build working env with Docker.
-
Install docker to the system (postpone this step if docker has been already installed):
sudo apt install docker
-
To start your docker environment, please go to the folder dockerfiles:
cd dockerfiles -
Create a docker image (you can put any name you want):
docker build --tag 'laa_net' .
-
Check the status of the image created:
-
Run command:
docker image ls
-
You should see something similiar:
REPOSITORY IMAGE ID CREATED SIZE TAG laa_net efd422370750 12 minutes ago 18.4GB latest
-
-
Run a container from the created image:
- Run command
docker run -v <data_path>:<path_in_container> --gpus 'all,capabilities=utility' -it laa_net /bin/bash
- Check the container created:
- Run command:
docker ps
- Check the result:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 0203c192febb laa_net "/bin/bash" 29 seconds ago Up 28 seconds determined_cannon - To access the docker container:
docker exec -it 0203c192febb /bin/bash - To start the container:
docker start 0203c192febb
- To stop the container:
docker stop 0203c192febb
- Run command:
- Run command
-
Inside the docker container, you can clone or mount the repository from outside:
cd /workspace/ git clone https://github.com/XXX/LAA-Net.git cd LAA-Net/
-
Now you are ready for QuickStart