2

In azure devops among all the Docker task, its not include the "pull" ( I dont know why ). How would be the correct way to do a docker pull to my repository. I m using the following code the image its being pull but I dot know where the image is pulled.

- bash: |
     echo "pulling image: "$(imageName)
     docker pull $(imageName)
  displayName: "Docker pull"

There its not another way to do that inside a docker task ?

Thanks in advance

1
  • 1
    check by running another command to list down the docker images after the pull Commented Mar 14, 2021 at 18:35

1 Answer 1

3

You can always log $(Build.SourcesDirectory)
and you can also specify the build source like this:

 - script:  docker pull $(imageName)
   workingDirectory: $(Build.SourcesDirectory)/front-end/myAppFront/
   displayName: 'Docker Pull'
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.