Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Image name format error while using custom docker image from Jfrog docker registry

a2l March 12, 2022

I'm using docker images hosted on Jfrog registry. 

Bitbucket pipeline is using these custom images from Jfrog registry for building the code.

The pipeline image section looks as below

```

image:
    name: $DOCKER_BUILD_IMAGE
    username: $JFROG_ARTIFACTORY_USERNAME
    password: $JFROG_ARTIFACTORY_PASSWORD
    email: $DOCKER_IMAGE_REGISTRY_EMAIL
```
The value of the DOCKER_BUILD_IMAGE is set in repository variables as below: `<mycompany>.jfrog.io/artifactory-docker-dev-local/<product>/<image-name>:latest`
When pipeline is run, I'm getting following error
pipeline_error.PNG

If I use same image and pull it and run using docker, I can run it with no issues.

e.g.

`docker run --rm -it <mycompany>.jfrog.io/artifactory-docker-dev-local/<product>/<image-name>:latest`

works fine.

Angle brackets surrounding `mycompany` and `product` in the image name are not present in actual name used. They are mentioned here only to indicate that the actual values in the image name are different than shown here.

Can someone help me understand how the bitbucket pipeline is expecting the image name here?

1 answer

1 accepted

0 votes
Answer accepted
a2l March 14, 2022

I have observed that if I specify the image name directly in the bitbucket-pipelines.yml file instead of repository variable, bitbucket is able to recognize and use the docker image correctly.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events