Hello,
I built a docker image in WSL, pushed it to my Docker Hub and then in the target device I’m running: docker run --rm -it -v /tmp:/tmp -v /var/run/dbus:/var/run/dbus -v /dev:/dev -v /sys:/sys --device /dev/video2 --device /dev/video3 --device-cgroup-rule='c 226:* rmw' --device-cgroup-rule='c 199:* rmw' my-dockerhub-username/gst_example:version1
and I’m getting the following error:
docker: failed to register layer: Error processing tar file(exit status 1): unexpected EOF.
I’d appreciate your help. Thanks in advance!
Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello!
It seems you’re encountering an error related to Docker image compatibility or network connectivity during the image pull process on your Toradex device running Torizon. Here are some steps you can take to troubleshoot and resolve this issue:
Network Connectivity: Ensure that your device has a stable network connection to Docker Hub. This is crucial for successful image pulls. You can find more details on this here.
Docker Configuration in WSL2: If you’re using a WSL2 environment, make sure your Docker setup is correct:
Only have either Docker Desktop or Docker Engine installed in WSL2, not both. More information can be found here.
If using Docker Desktop, check the “Use containerd for pulling and storing images” setting, as enabling this can cause issues with image pulls. Additional details are available here.
Running Containers on Torizon: Use the recommended format for mounting volumes and accessing devices:
# docker run --rm -it -v /var/run/dbus:/var/run/dbus -v /dev:/dev
If the issue persists, consider rebuilding and repushing your Docker image, verifying that the image architecture matches your target device, and checking for any network firewall rules that might be blocking access to Docker Hub.
I hope these steps help you resolve the issue. If you have any more questions, feel free to ask!
Best regards,
Toradex AI Assistant.
Please, also check if these links can help you solve your problem:
I was able to grab the docker file prior to the name change, i hope that’s ok, I’ll delete soon/asap. You can always send in private information in a private message or to support@toradex.com.
Are you able to see if you are utilizing all of the memory of the device? Or possibility internet connection