deployer icon indicating copy to clipboard operation
deployer copied to clipboard

failed to pull image "deployphp/deployer:7" with specified policies

Open ardzz opened this issue 1 year ago • 4 comments

Running with gitlab-runner 16.3.0~beta.108.g2b6048b4 (2b6048b4) on green-3.saas-linux-small-amd64.runners-manager.gitlab.com/default Jhc_Jxvh, system ID: s_0e6850b2bce1 feature flags: FF_USE_IMPROVED_URL_MASKING:true, FF_RESOLVE_FULL_TLS_CHAIN:false Preparing the "docker+machine" executor 00:05 Using Docker executor with image deployphp/deployer:7 ... Pulling docker image deployphp/deployer:7 ... WARNING: Failed to pull image with policy "always": Error response from daemon: pull access denied for deployphp/deployer, repository does not exist or may require 'docker login': denied: requested access to the resource is denied (manager.go:237:0s) ERROR: Job failed: failed to pull image "deployphp/deployer:7" with specified policies [always]: Error response from daemon: pull access denied for deployphp/deployer, repository does not exist or may require 'docker login': denied: requested access to the resource is denied (manager.go:237:0s)

hpw to fix it?

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

ardzz avatar Oct 09 '23 11:10 ardzz

It is new to me, that we have a deployer docker container? Can you tell me, where you found it?

Schrank avatar Oct 09 '23 13:10 Schrank

I reckon this is why: https://deployer.org/docs/7.x/ci-cd#gitlab-cicd

stages:
  - deploy

deploy:
  stage: deploy
  image:
    name: deployphp/deployer:7 # <--- THIS
    entrypoint: [""]
  before_script:
    - mkdir -p ~/.ssh
    - eval $(ssh-agent -s)
    - echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
    - chmod 644 ~/.ssh/known_hosts
    - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
  script:
    - dep deploy -vvv
  resource_group: production
  only:
    - master

ochorocho avatar Oct 11 '23 12:10 ochorocho

@ochorocho yes, you right

ardzz avatar Oct 12 '23 15:10 ardzz

but at the end, i use registry from registry.gitlab.com/pipeline-components/deployer:latest

ardzz avatar Oct 12 '23 15:10 ardzz