Can you install Noetic with Docker on a Raspberry Pi?
I have installed (well, actually build and run a container) Kinetic and also ROS2 eloquent with docker on my raspberry pi. I am trying to do the same with Noetic but failing. Is it possible to have a Noetic container in RPi?
(For reference I write here other info)
- I have build and run a Noetic container in a desktop ubuntu machine
- I have read that you can install Noetic on a RPi natively
- I have failed doing the following:
.
$docker pull ros:noetic
No problem here
$docker image ls
I can see the image
$docker run -it ros:noetic
Fatal Python error: pyinit_main: can't initialize time
Python runtime state: core initialized
PermissionError: [Errno 1] Operation not permitted
Current thread 0xb6ff1460 (most recent call first):
<no Python frame>
Asked by Kansai on 2020-08-09 20:04:08 UTC
Answers
Maybe you could try the arm32v7 image : https://hub.docker.com/r/arm32v7/ros ?
Asked by titouanlh on 2020-08-10 01:35:45 UTC
Comments
;tldr try --security-opt seccomp:unconfined in your docker run command
I am running into this issue as well with the ros:noetic-ros-core-focal as well as ros:noetic builds straight from dockerhub
docker run -it --rm ros:noetic-ros-core-focal bash
Fatal Python error: pyinit_main: can't initialize time
Python runtime state: core initialized
PermissionError: [Errno 1] Operation not permitted
I think this issue is definitely tied to the arm32 architecture as I successfully performed the above test on arm64 and amd64 architectures. I also tried installing straight from ubuntu:focal following ros.org installation instructions, but there seems to be an issue with that too, as highlighted here : https://askubuntu.com/questions/1263284/apt-update-throws-signature-error-in-ubuntu-20-04-container-on-arm
After all this, what ended up working for me was running with the --security-opt seccomp:unconfined option. This appears to be tied to some issue with libseccomp package that is breaking debian builds for arm32.
docker run --rm --name noetic-dev -it --security-opt seccomp:unconfined ros:noetic bash
Asked by canderson on 2020-10-20 19:42:03 UTC
Comments
Could you give more details on your setup:
Can you clarify which images you built yourself vs pulled directly from dockerhub ? and why you needed to build them as opposed to using the ones upstream?
For an additional datapoint, I have a RPi 4B+ running ubuntu server 20.04 64bits and it successfully runs
ros:noetic,ros:melodicandros:eloquentcontainers out-of-the-boxAsked by marguedas on 2020-08-10 11:10:55 UTC
...same problem here on a Pi 3B+ and latest Hypriot
Got the image via:
docker pull arm32v7/ros:noetic-ros-base
Asked by WaldoPepper on 2020-08-24 08:48:04 UTC