We have a webapp running continuously since over a year now with no change. Now it's not running anymore with the following message in the log:
2022-06-07T15:14:29.087Z INFO - Pulling image: mongo:4.0.8
2022-06-07T15:14:29.777Z ERROR - DockerApiException: Docker API responded with status code=InternalServerError, response={"message":"Get https://registry-1.docker.io/v2/library/mongo/manifests/4.0.8: unauthorized: incorrect username or password"}
2022-06-07T15:14:29.778Z ERROR - Pulling docker image mongo:4.0.8 failed:
2022-06-07T15:14:29.784Z WARN - Image pull failed. Defaulting to local copy if present.
2022-06-07T15:14:29.786Z ERROR - Image pull failed: Verify docker image configuration and credentials (if using private repository)
2022-06-07T15:14:29.787Z ERROR - multi-container unit was not started successfully
The docker-compose.yml:
version: '3.1'
services:
web:
build: .
container_name: flask
ports:
- '5000:5000'
volumes:
- .:/usr/src/app
links:
- mongodb
environment:
APP_ENV: "prod"
APP_DEBUG: "False"
APP_PORT: 5000
MONGODB_DATABASE: flaskdb
MONGODB_USERNAME: mongodbuser
MONGODB_PASSWORD: password
MONGODB_HOSTNAME: mongodb
mongodb:
image: mongo:4.0.8
container_name: mongodb
environment:
MONGO_INITDB_ROOT_USERNAME: mongodbuser
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_DATABASE: flaskdb
MONGODB_DATA_DIR: /data/db
MONDODB_LOG_DIR: /dev/null
volumes:
- mongodbdata:/data/db
volumes:
mongodbdata:
driver: local
Any ideas?