Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hi Jon,
To access a Web API service running on your Colibri iMX6DL with Torizon OS, you need to ensure that the Docker container running your Web API is properly configured to expose the necessary port. Here are the steps you can follow:
Expose the Port in the Dockerfile:
Ensure that your Dockerfile includes the EXPOSE instruction for the port your Web API is using. For example:
EXPOSE 5003
Run the Docker Container with Port Mapping:
When you run your Docker container, you need to map the container port to a port on the host (your Colibri module). You can do this using the -p option with docker run. For example:
docker run -d -p 5003:5003 your-docker-image
This command maps port 5003 on the host to port 5003 in the container.
Check Network Configuration:
Ensure that your Colibri module and the PC are on the same network and that there are no firewall rules blocking the connection. You can test the network connectivity using ping or telnet from the PC to the Colibri module’s IP address.
Verify the Web API is Running:
Make sure that your Web API service is running correctly inside the container. You can check the logs of the container to see if there are any errors:
docker logs <container_id>
Access the Web API:
From your PC, you should be able to access the Web API using the Colibri module’s IP address and the mapped port. For example:
http://<colibri_ip_address>:5003
If you have followed these steps and are still encountering issues, please provide more details about any error messages or logs, and we can further troubleshoot the problem.
Many Thanks,
[Your Name]
Please, also check if these links can help you solve your problem: