Open zhuhaier1992 opened 11 months ago
I updated the humble and iron docker files. Try to pull and then build the image.
Hi Jeguzzi, thank you for your prompt reply! Yet I met another problem when I run sudo docker compose up
, it reports:
[+] Running 2/0
Container ep-teleop-1 Created 0.0s
Container ep-driver-1 Created 0.0s
Attaching to ep-driver-1, ep-teleop-1
ep-teleop-1 | exec /ros_entrypoint.sh: exec format error
ep-driver-1 | exec /ros_entrypoint.sh: exec format error
ep-teleop-1 exited with code 1
ep-driver-1 exited with code 1
If I run sudo docker build --platform linux/amd/v3 .
, it reports:
[+] Building 0.1s (2/2) FINISHED docker:default
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 2B 0.0s
ERROR: failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount3063548553/Dockerfile: no such file or directory
And if I run: sudo docker run -it f38430005841 # id of jeguzzi/robomaster_ros
, then it reports:
The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested
exec /ros entrypoint.sh: exec format error
I don't know if it's because I am running ubuntu20 on vmware. I will try to do it on physical machine tomorrow.
Hi @zhuhaier1992 ,
in case you still have the problem, I image that it is caused by pulling the docker image from my docker hub repo, and getting the wrong architecture. Try to build the image locally. I don't know why the build failed but most probably it does not have a direct link to the robomaster_ros
image.
The error msg are as follows:
It seems that /usr/bin/python3.10 can't find a module called rosidl_adapter. So I have tried add a command in Dockerfile that install rosidl_adapter by
RUN apt-get install ros-humble-rosidl-adapter
. Then it says it's already installed, and shows this same error msg again.