princeton-vl / DPVO_Docker

MIT License
5 stars 4 forks source link

The absolute path to build the container. #4

Open RaymonHE opened 1 year ago

RaymonHE commented 1 year ago

Hello, I wonder where should I create the container. I succeed in installing all the dependencies, but when I'm trying to build the docker container under my home path and DPVO file folder, I got this DPVO git:(main) ✗ sudo ./build_container.sh 11.6.1 sudo: ./build_container.sh: command not found `➜ ~ sudo ./build_container.sh 11.6.1 sudo: ./build_container.sh: command not found

My Cuda version is 11.6 according to the feedback of nvidia-smi `(dpvo) ➜ DPVO git:(main) ✗ nvidia-smi Thu Nov 17 01:03:18 2022
+-----------------------------------------------------------------------------+ | NVIDIA-SMI 510.85.02 Driver Version: 510.85.02 CUDA Version: 11.6 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 NVIDIA GeForce ... Off | 00000000:01:00.0 On | N/A | | 30% 46C P0 26W / 120W | 1445MiB / 5120MiB | 7% Default | | | | N/A | +-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| | 0 N/A N/A 22026 G /usr/lib/xorg/Xorg 101MiB | | 0 N/A N/A 22595 G /usr/lib/xorg/Xorg 816MiB | | 0 N/A N/A 22985 G /usr/bin/gnome-shell 165MiB | | 0 N/A N/A 24264 G ...150394509144825396,131072 286MiB | +-----------------------------------------------------------------------------+ ` I would be very grateful if you could do me a favor, thanks.

lahavlipson commented 1 year ago

You should run the command inside a clone of DPVO_Docker. The dockerfile clones its own copy of DPVO

RaymonHE commented 1 year ago

Here's the results of dependency installation Docker installation and "hello world" `~ sudo docker run hello-world

Hello from Docker! This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:

  1. The Docker client contacted the Docker daemon.
  2. The Docker daemon pulled the "hello-world" image from the Docker Hub. (amd64)
  3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading.
  4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal.

To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID: https://hub.docker.com/

For more examples and ideas, visit: https://docs.docker.com/get-started/ add the [nvidia-docker](https://nvidia.github.io/nvidia-docker/) repository ➜ ~ curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add - distribution=$(. /etc/os-release;echo $ID$VERSION_ID) curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | \ sudo tee /etc/apt/sources.list.d/nvidia-docker.list OK deb https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/$(ARCH) /

deb https://nvidia.github.io/libnvidia-container/experimental/ubuntu18.04/$(ARCH) /

deb https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/$(ARCH) /

deb https://nvidia.github.io/nvidia-container-runtime/experimental/ubuntu18.04/$(ARCH) /

deb https://nvidia.github.io/nvidia-docker/ubuntu18.04/$(ARCH) / ` Install the Nvidia container/docker toolkits

➜ ~ sudo apt-get update sudo apt-get install -y nvidia-container-toolkit nvidia-docker2 sudo systemctl restart docker Get:1 file:/var/cudnn-local-repo-ubuntu2004-8.6.0.163 InRelease [1,575 B] Get:1 file:/var/cudnn-local-repo-ubuntu2004-8.6.0.163 InRelease [1,575 B] Hit:2 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 InRelease Hit:3 http://hk.archive.ubuntu.com/ubuntu focal InRelease Hit:4 https://download.docker.com/linux/ubuntu focal InRelease Hit:5 http://packages.ros.org/ros/ubuntu focal InRelease Get:6 http://hk.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB] Hit:7 https://dl.google.com/linux/chrome/deb stable InRelease Get:8 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB] Hit:9 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64 InRelease Hit:10 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 InRelease Hit:11 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 InRelease Get:12 http://security.ubuntu.com/ubuntu focal-security/main i386 Packages [520 kB] Get:13 http://hk.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB] Get:14 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1,850 kB] Get:15 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [305 kB] Get:16 http://security.ubuntu.com/ubuntu focal-security/main amd64 c-n-f Metadata [11.2 kB] Get:17 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [770 kB] Get:18 http://security.ubuntu.com/ubuntu focal-security/universe i386 Packages [571 kB] Get:19 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [148 kB] Get:20 http://security.ubuntu.com/ubuntu focal-security/universe amd64 c-n-f Metadata [16.7 kB] Fetched 4,528 kB in 40s (114 kB/s) Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done nvidia-container-toolkit is already the newest version (1.11.0-1). nvidia-docker2 is already the newest version (2.11.0-1). The following packages were automatically installed and are no longer required: gstreamer1.0-gtk3 ibus-data libabw-0.1-1 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5 libcmis-0.5-5v5 libe-book-0.1-1 libeot0 libepubgen-0.1-1 libetonyek-0.1-1 libexttextcat-2.0-0 libexttextcat-data libfreehand-0.1-1 libgpgmepp6 libjuh-java libjurt-java liblangtag-common liblangtag1 libmhash2 libmspub-0.1-1 libmwaw-0.3-3 libmythes-1.2-0 libneon27-gnutls libodfgen-0.1-1 liborcus-0.15-0 libpagemaker-0.0-0 libraptor2-0 librasqal3 librdf0 libreoffice-style-colibre libreoffice-style-elementary librevenge-0.0-0 libridl-java libuno-cppu3 libuno-cppuhelpergcc3-3 libuno-purpenvhelpergcc3-3 libuno-sal3 libuno-salhelpergcc3-3 libunoloader-java libvisio-0.1-1 libwpd-0.10-10 libwpg-0.3-3 libwps-0.4-4 libxmlsec1 libxmlsec1-nss libyajl2 lp-solve python3-ibus-1.0 uno-libs-private ure Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded. After I finished these, where can I find the clone of DPVO_Docker? Sorry, I'm new to docker, thanks for your patience.

lahavlipson commented 1 year ago

Sorry, I meant that after you install the dependencies, you should clone a copy of this git repository, cd into it, and then run the commands from the README (starting with build_container.sh)

RaymonHE commented 1 year ago

Sorry, I meant that after you install the dependencies, you should clone a copy of this git repository, cd into it, and then run the commands from the README (starting with build_container.sh)

I clone the DPVO_Docker to my computer, again, after I succeeded in finishing all the preparation work, I input the "sudo ./build_container.sh 11.6.1" The same output notifies me that the command not found. " DPVO_Docker git:(main) sudo ./build_container.sh 11.6.1 sudo: ./build_container.sh: command not found "

RaymonHE commented 1 year ago

Sorry, I meant that after you install the dependencies, you should clone a copy of this git repository, cd into it, and then run the commands from the README (starting with build_container.sh)

Should I delete all the dependencies and the docker and then install them again?

RaymonHE commented 1 year ago

Sorry, I meant that after you install the dependencies, you should clone a copy of this git repository, cd into it, and then run the commands from the README (starting with build_container.sh)

I installed the desktop docker again. I git clone this repository and then cd enter into the file folder. In this file folder, I enter the command "sudo ./build_container.sh 11.6.1" ➜ DPVO_Docker git:(main) sudo ./build_container.sh 11.6.1 sudo: ./build_container.sh: command not found I wonder how come

YznMur commented 1 year ago

@RaymonHE Try this chmod +x ./build_container.sh

RaymonHE commented 1 year ago

@RaymonHE Try this chmod +x ./build_container.sh

Hi thanks for advice. I tried, but then the following instruction “exec -it ”didn’t work. The output came with sth like “cannot find dpvo”. I was confused by this since I executed all excursions within the folder of dpvo-docker, so I did know why, and I’ve trying to fix this by reinstalling the CUDA but it didn’t work.