Closed gurnarok closed 3 years ago
I think this was caused by having installed docker-py through pip.
After uninstalling docker-py, I was able to start rocker.
Confirmed that this is the problem.
Installed docker-py through pip, tried to run rocker with the following command:
hannu@Terra:~$ rocker --nvidia --x11 osrf/ros:melodic-desktop-full gazebo
usage: rocker [-h] [--noexecute] [--nocache] [--nocleanup] [--pull] [-v] [--dev-helpers] [--devices [DEVICES [DEVICES ...]]] [--env NAME[=VALUE] [NAME[=VALUE] ...]] [--env-file ENV_FILE] [--git] [--home] [--name NAME] image [command [command ...]]
rocker: error: DependencyMissing encountered: Docker Client failed to connect to docker daemon. Please verify that docker is installed and running. As well as that you have permission to access the docker daemon. This is usually by being a member of the docker group.
hannu@Terra:~$ groups hannu
hannu : hannu adm cdrom sudo dip plugdev lpadmin lxd sambashare docker
hannu@Terra:~$ pip3 uninstall docker-py
Found existing installation: docker-py 1.10.6
Uninstalling docker-py-1.10.6:
Would remove:
/home/hannu/.local/lib/python3.8/site-packages/docker/*
/home/hannu/.local/lib/python3.8/site-packages/docker_py-1.10.6.dist-info/*
Proceed (y/n)? y
Successfully uninstalled docker-py-1.10.6
After that, rerunning rocker command, I got Gazebo to show up.
Thanks for the followup that can help others in the future.
Just want to add another reason why this might fail with:
Successfully built a9b5d1f0dae0
running, docker run -it --rm a9b5d1f0dae0
output: standard_init_linux.go:228: exec user process caused: permission denied
/tmp/detect_os failed:
> standard_init_linux.go:228: exec user process caused: permission denied
WARNING unable to detect os for base image 'docker-image-name' maybe the base image does not exist
is if your dockerfile creates a user since rocker seems to expect to be root.
Hi, I am trying to start gazebo with rocker, using the basic command of:
rocker --nvidia --x11 osrf/ros:melodic-desktop-full gazebo
But I get the following error output:
What could be causing this?
OS: Ubuntu 20.04 rocker 0.2.3 Docker version 20.10.5, build 55c4c88 Python 3.8.5