I'm currently playing around with docker containers and azure devops with the goal to run a couple of tests from it.
This is what I currently do:
- I have created a dockerfile in my repo
- I have created a pipline that build and push an image to container registry
- I have checked that the image exist in container registry
- I have started on a new release pipline with the following task:
A login task:
steps: - task: Docker@2 displayName: Login inputs: containerRegistry: nameOfMyRegistry command: loginA run task:
steps: - task: Docker@2 displayName: 'Run tests' inputs: containerRegistry: nameOfRegistry repository: nameOfRepository command: run arguments: 'nameOfImage -p 8089:8089 -f tests.py --run-time 30s -u 1 -r 1'
But after I run this I get the following error:
2021-04-26T11:39:38.9204965Z ##[error]Unable to find image 'nameOfMyImage:latest' locally
2021-04-26T11:39:38.9228444Z ##[error]docker: Error response from daemon: manifest for nameOfMyImage:latest not found: manifest unknown: manifest tagged by "latest" is not found.
So I'm not sure if I'm missing something? I put in all information to my azure container registry so I thought it would just get the image from it but it seems like it can't find it.