Skip to content

Conversation

@mrteera
Copy link

@mrteera mrteera commented Jul 29, 2017

This is a Dockerfile attempts to run ORB_VIO. You can run it on Ubuntu 16.04 but Docker container itself will be run on Ubuntu 14.04.

Build Docker image using this command:

docker build . -t viorb

And then follow instructions in Dockerfile comments.

@DEQDON
Copy link

DEQDON commented Nov 4, 2018

Hi, @mrteera
I'm new to docker, and I've encountered the following problems when using your Dockerfile.
My system is Ubuntu 16.04.

I put the four files, "Dockerfile", "run", "run_docker.sh", "run_rosbag" into my "/home/elgin/LearnVIORB" directory. Then I installed docker and nvidia-docker according to the step 1 , modified ORB_VIO part in build.sh , and edited config/euroc.yaml.

I executed "docker build . -t viorb", here comes the first problem. At rosdep update, the docker output something like "rosdep is not recommanded to run in root", in red fonts, though it did not seem an error.

The second problem is, after "docker build" "successfully finished", I tried to execute "bash run_docker.sh" and "sudo bash run_docker.sh", but both output
/bin/sh: 1: /home/elgin/run: Permission denied
I tried to follow the suggestion like "-privileged=true", but it didn't help.

Do you have any idea of how these two problems might be solved? Looking forward to your kind help.

@mrteera
Copy link
Author

mrteera commented Nov 5, 2018

@DEQDON I guess you might forget to add your user to docker group.

sudo usermod -aG docker <your_username>

And the new nvidia-docker command has changed.

docker run -ti --rm --runtime=nvidia \
       -e DISPLAY=$DISPLAY \
       -v /tmp/.X11-unix:/tmp/.X11-unix \
       viorb

@DEQDON
Copy link

DEQDON commented Nov 6, 2018

Adding user to docker group has already been done, but still not working.
I just reinstalled the libraries to the versions that your dockerfile uses, and it worked, not using docker.
Thank you all the same!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants