CodexBloom - Programming Q&A Platform

OCI Function Deployment scenarios with 'Invalid Image Reference' scenarios Despite Valid Container Image

👀 Views: 55 đŸ’Ŧ Answers: 1 📅 Created: 2025-06-10
oracle-cloud-infrastructure functions container-registry oci bash

I tried several approaches but none seem to work. I'm testing a new approach and I've been struggling with this for a few days now and could really use some help... I'm trying to deploy an OCI Function using a container image stored in Oracle Cloud Infrastructure's (OCI) Container Registry, but I'm running into an scenario where the deployment fails with an 'Invalid Image Reference' behavior. I have verified that the image exists and is accessible, yet the function deployment continues to unexpected result. Here's the command I'm using to create the function: ```bash fn create function myapp myfunction --image myregistry/myimage:latest --memory 256 --timeout 60 ``` The behavior output I receive is: ``` behavior: Invalid Image Reference ``` I have checked the image path several times, ensuring that it matches the format: `myregistry/myimage:tag`. Additionally, I am authenticated to the Container Registry using the OCI CLI, verified with: ```bash oci os ns get ``` which returns my namespace correctly. I have also tried using the full registry URL: ```bash fn create function myapp myfunction --image phx.ocir.io/mytenancy/myimage:latest --memory 256 --timeout 60 ``` but I still get the same behavior. I've ensured that my function is set up with the necessary permissions to access the Container Registry. I even created a policy like: ```text Allow service FNF to manage functions in compartment MyCompartment Allow service FNF to manage artifacts in compartment MyCompartment ``` Despite all this, I'm unable to figure out what is going wrong. Has anyone encountered this scenario before or can provide insights into what might be causing this behavior? For context: I'm using Bash on Linux. Thanks in advance! This is for a service running on Windows 11. Any help would be greatly appreciated! My development environment is Debian. Thanks for any help you can provide!