Need help to run docker locally on Ubuntu system ¶
By: bilalUWE on Aug. 18, 2022, 12:23 a.m.
Dear Organisers,
I downloaded the Category 1 github and followed the steps to run it without making any modifications to see if it will run. I am getting the following error:
(base) bilal@my-PC:~/mlworks/surgtoolloc2022-category-1$ sudo bash test.sh Sending build context to Docker daemon 6.892MB Step 1/13 : FROM pytorch/pytorch ---> eb86f059e26c Step 2/13 : RUN groupadd -r algorithm && useradd -m --no-log-init -r -g algorithm algorithm ---> Using cache ---> 75c457f74dcf Step 3/13 : RUN mkdir -p /opt/algorithm /input /output && chown algorithm:algorithm /opt/algorithm /input /output ---> Using cache ---> 7eab83656e4c Step 4/13 : RUN apt-get update ---> Using cache ---> 1054f9e6c6a6 Step 5/13 : RUN apt-get install ffmpeg libsm6 libxext6 -y ---> Using cache ---> 0368543d5f56 Step 6/13 : USER algorithm ---> Using cache ---> 7779e04ba7d1 Step 7/13 : WORKDIR /opt/algorithm ---> Using cache ---> 6d33f49c3213 Step 8/13 : ENV PATH="/home/algorithm/.local/bin:${PATH}" ---> Using cache ---> 34b1fc4932fd Step 9/13 : RUN python -m pip install --user -U pip ---> Using cache ---> 1c2f03a52c0d Step 10/13 : COPY --chown=algorithm:algorithm requirements.txt /opt/algorithm/ ---> Using cache ---> 3d48e4242396 Step 11/13 : RUN python -m pip install --user -rrequirements.txt ---> Using cache ---> 7e21ea7b224e Step 12/13 : COPY --chown=algorithm:algorithm process.py /opt/algorithm/ ---> Using cache ---> f3c5ec870d51 Step 13/13 : ENTRYPOINT python -m process $0 $@ ---> Using cache ---> 93aa0ab27d1b Successfully built 93aa0ab27d1b Successfully tagged surgtoolloc_trial:latest 1+0 records in 1+0 records out 32 bytes copied, 5.177e-05 s, 618 kB/s surgtoolloc_trial-output-132fc6079e3f4ec0d8acf6af460db725 /input/vid_1_short.mp4 Video file to be loaded: /input/vid_1_short.mp4 62 Unable to find image 'python:3.9-slim' locally 3.9-slim: Pulling from library/python 1efc276f4ff9: Pulling fs layer 126aaa6587b8: Pulling fs layer e35bea92ae69: Pulling fs layer 0a238512fbde: Pulling fs layer 5c5fa7d86537: Pulling fs layer 5c5fa7d86537: Waiting 0a238512fbde: Waiting 126aaa6587b8: Download complete 0a238512fbde: Verifying Checksum 0a238512fbde: Download complete 5c5fa7d86537: Verifying Checksum 5c5fa7d86537: Download complete e35bea92ae69: Verifying Checksum e35bea92ae69: Download complete 1efc276f4ff9: Verifying Checksum 1efc276f4ff9: Download complete 1efc276f4ff9: Pull complete 126aaa6587b8: Pull complete e35bea92ae69: Pull complete 0a238512fbde: Pull complete 5c5fa7d86537: Pull complete Digest: sha256:773ab5acbbd67ee168f1a4ffeac8db8de009ad22fcf509cd6abc7b9907b0cc9c Status: Downloaded newer image for python:3.9-slim [ { "slice_nr": 0, "needle_driver": false, "monopolar_curved_scissor": false, "force_bipolar": false, "clip_applier": false, "tip_up_fenestrated_grasper": false, "cadiere_forceps": false, "bipolar_forceps": false, "vessel_sealer": true, "suction_irrigator": false, "bipolar_dissector": false, "prograsp_forceps": false, "stapler": false, "permanent_cautery_hook_spatula": false, "grasping_retractor": true }, ... { "slice_nr": 61, "needle_driver": false, "monopolar_curved_scissor": false, "force_bipolar": false, "clip_applier": false, "tip_up_fenestrated_grasper": false, "cadiere_forceps": false, "bipolar_forceps": false, "vessel_sealer": true, "suction_irrigator": false, "bipolar_dissector": false, "prograsp_forceps": false, "stapler": false, "permanent_cautery_hook_spatula": false, "grasping_retractor": true } ] Traceback (most recent call last): File "", line 1, in FileNotFoundError: [Errno 2] No such file or directory: '/tmp/expected_output_classification.json' Expected output was not found... surgtoolloc_trial-output-132fc6079e3f4ec0d8acf6af460db725
The code is not finding the /tmp directory. Any idea on how to resolve this issue.
Many thanks and
Kind Regards, Bilal