AZ Batch fails to load container from private azure container registry #3493
Replies: 2 comments 4 replies
-
Hi @alliemclean , Interesting problem, could you please try to reproduce this by removing the fileshare configs and usage from the code? For me, this is working fine with private containers 🤔 |
Beta Was this translation helpful? Give feedback.
-
I finally had time to log onto the node and try to run the image and I got this error:
Upon googling I found that this is because I built the image on my mac. Even using the --platform parameter did not resolve this. I rebuilt the image on a linux VM, pushed it, and the issue was resolved. The containerOptions also work now, but for some reason I don't have access to the root directory in the image. It's likely unrelated to nextflow but I'll keep debugging. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug report
AZ Batch fails to load container from private azure container registry
Expected behavior and actual behavior
Expected behavior
To work following these instructions here.
This pipeline works with a local config as opposed to az-batch
Actual behavior
After AzBatch allocates the pool and the nodes, the task is launched in a node but produces no output.
I've tried to log into the node and it doesn't appear that the docker container ever ran. In the azure container registry the container appears to have been successfully pulled. Public containers work and this private container works as expected using a local config.
If I add containerOptions to the process I get an error:
This could be a second issue, but ideally I'd assume it should work.
I also tried to add a sleep command to beforeScript so I had time to log onto the node but that doesn't appear to run either. It appears like connecting the the registry is successful in the log, azcopy appears to install and work, but something is happening before the script runs to cause an error.
Steps to reproduce the problem
test_private_reg.nf
azure.config
Program output
nextflow.log
Environment
Additional context
Beta Was this translation helpful? Give feedback.
All reactions