telegram-bot-template icon indicating copy to clipboard operation
telegram-bot-template copied to clipboard

repository does not exist or may require 'docker login'

Open alexauvray opened this issue 1 year ago • 2 comments

docker compose up -d --build

migrator Error pull access denied for bot, repository does not exist or may require 'docker login': denied: requested access to the res...

alexauvray avatar Jul 04 '24 07:07 alexauvray

Hello! 👋 Thank you for opening your first issue. We appreciate your contribution! 🎉

github-actions[bot] avatar Jul 04 '24 07:07 github-actions[bot]

Honestly, I do not know why this error arises, apparently this is due to the fact that migrator have image: bot:latest, but this image name also have service bot
(maybe you have an outdated version of docker/docker compose, try to update versions)


If the problem was not able to solve, you can remove service migrator from docker-compose.yml file and manually start migrations like this: docker compose exec bot alembic upgrade head but to make this you need add volume to service bot:

    volumes:
      - ./migrations:/usr/src/app/migrations

donbarbos avatar Jul 04 '24 11:07 donbarbos

This can happen if COMPOSE_PROJECT_NAME is not set. If you want you can remove container_name fields from services

donbarbos avatar Feb 08 '25 15:02 donbarbos

I have the same issue. @donBarbos help me where to set up COMPOSE_PROJECT_NAME?

vistar avatar May 25 '25 15:05 vistar

you can use export command, like this: export COMPOSE_PROJECT_NAME=myproject

I also added a default value to the .env file

donbarbos avatar May 25 '25 15:05 donbarbos

you can use export command, like this: export COMPOSE_PROJECT_NAME=myproject

I also added a default value to the .env file

I added to .env, remove all images, volumes, containers, run docker compose up -d --build. Amd have en error: migrator Error pull access denied for bot, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

vistar avatar May 25 '25 16:05 vistar