repository does not exist or may require 'docker login'
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...
Hello! 👋 Thank you for opening your first issue. We appreciate your contribution! 🎉
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
This can happen if COMPOSE_PROJECT_NAME is not set. If you want you can remove container_name fields from services
I have the same issue.
@donBarbos help me where to set up COMPOSE_PROJECT_NAME?
you can use export command, like this: export COMPOSE_PROJECT_NAME=myproject
I also added a default value to the .env file
you can use
exportcommand, like this:export COMPOSE_PROJECT_NAME=myprojectI also added a default value to the
.envfile
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