Unable to Generate the Mavsdk Docker on a M500
-
Hello,
I’ve recently started working with the Modal AI M500 drone and am encountering issues while trying to build Docker images on the drone. Specifically, I am having trouble with both the Mavsdk and Mavsdk-Python images.
Issue 1: Pulling Docker Image
When attempting to pull the Python Docker image (
modalai-public/voxl-mavsdk-python
), I receive the following error:Error: Status 405 trying to pull repository modalai-public/voxl-mavsdk-python: "v1 Registry API is disabled. If you are not explicitly using the v1 Registry API, it is possible your v2 image could not be found. Verify that your image is available, or retry with `dockerd --disable-legacy-registry`. See https://cloud.google.com/container-registry/docs/support/deprecation-notices"
Issue 2: Building Docker Image on Drone
I also tried building the Docker image directly on my computer while connected to the drone via ADB, but encountered this error:
Image: voxl-mavsdk-python:v1.1 Waiting for device... Checking for docker support... -> Docker support not detected, running docker support on target... /bin/sh: voxl-configure-docker-support.sh: not found Building image: voxl-mavsdk-python:v1.1 Dockerfile: 1 file pushed. 0.3 MB/s (802 bytes in 0.002s) takeoff_and_land2.py: 1 file pushed. 0.4 MB/s (941 bytes in 0.002s) offboard_position_ned2.py: 1 file pushed. 0.8 MB/s (2227 bytes in 0.003s) start-mavsdk-server.sh: 1 file pushed. 0.0 MB/s (109 bytes in 0.007s) Sending build context to Docker daemon 8.192 kB Step 1 : FROM ubuntu:22.04 Pulling repository docker.io/library/ubuntu Error: Status 410 trying to pull repository library/ubuntu: "<html>\r\n<head><title>410 Gone</title></head>\r\n<body>\r\n<center><h1>410 Gone</h1></center>\r\n<hr><center>openresty</center>\r\n</body>\r\n</html>\r\n"
Additional Information
- Docker Version: 1.9.0 on the VOXL
- Drone Firmware Version: - I just updated it to the newest SDK version 1.2.
Could someone please assist me with these issues? Any guidance or suggestions would be greatly appreciated.
Thank you!
-
@Sarah-McMahon Hi! So it appears that as of this month Docker actually fully depracated their V1 API registry meaning that leveraging docker pull to pull down an already made docker image from dockerhub results in a 410 error (This is only an issue on the voxl1 as the docker instance is quite old and yocto doesn't play nice with the newer versions of docker). We are currently developing a quick fix that can build the voxl-docker-mavsdk image on a parent computer and then push that to the voxl1 on the m500 to leverage. Should hopefully have something in the next few days.
Thanks!
-
@Sarah-McMahon please clone down most recent main:
https://gitlab.com/voxl-public/voxl-docker-images/voxl-docker-mavsdk
Then follow the build instructions to build the voxl-docker-mavsdk docker instance and then push it to the voxl to load and run there. LMK if you run into any issues!
-
@Zachary-Lowell-0 I encountered an issue with the threading during the download process, which caused it to take about 9 hours. The main problem arose when running deploy-to-voxl.sh—the drone ran out of storage after pushing the tar file, preventing the image from being loaded into Docker. While attempting to free up space, I mistakenly ran the wrong opkg command and deleted all opkg packages, making it impossible to SSH or ADB into the drone. Do you have any suggestions for a potential fix? I noticed the USB Expander and Debug Add-On Board might be helpful, but I couldn't find it available for purchase on the website.