To install the TIY service, do the following:
Download the packages required for Docker operation:
Open Docker Desktop. Make sure that the Docker Desktop running icon is displayed in the system tray of the taskbar. You can also verify that it is running in the Docker Desktop interface (look for the Engine running icon in the bottom-left corner).
Upload the TIY Docker image:
docker pull axxonsoft/train_it_yourself:v1.3.28
Note
The following commands are for Windows OS; for Linux OS, you can use the same commands with addition of sudo at the beginning of each of them.
docker run --rm -p 5000:5000 --gpus all --privileged axxonsoft/train_it_yourself:v1.3.28
Parameter | Description |
---|---|
--rm | Automatically removes the container after it stops running |
--gpus all | Grants the container access to all GPUs. To use specific GPUs, their IDs must be specified |
--privileged | Grants the container root access to the host. For security purposes, it is recommended to use the minimum necessary privileges. The full list of parameters can be found in the Running containers + GPU support section on the official Docker website |
As a result, the container will start running. It is not recommended to close the command-line window until you have finished working with the service. If the command-line window is closed, the container will stop, and the TIY service will terminate.
To access the web interface of the TIY service, open a browser and navigate to http://localhost:5000/.
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e811e3c07661 u7665/tiy:v1.3.28 "/bin/sh -c 'python3…" 3 hours ago Up 3 hours 0.0.0.0:5000->5000/tcp, :::5000->5000/tcp kind_proskuriakova
docker stop %CONTAINER ID%
sudo service docker restart