Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,338
Community Members
 
Community Events
176
Community Groups

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

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

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

Atlassian Community Events