donBarbos / telegram-bot-template

🤖 Template for telegram bot using postgres, pgbouncer, redis, docker, amplitude, prometheus, grafana, CI with admin panel
GNU Lesser General Public License v3.0
274 stars 50 forks source link

repository does not exist or may require 'docker login' #264

Open alexauvray opened 4 months ago

alexauvray commented 4 months ago

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...

github-actions[bot] commented 4 months ago

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

donBarbos commented 4 months ago

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